OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f20b10e
)
Izabera reporeted that FLAG_v was never checked in timeout. (Oops.)
author
Rob Landley
<rob@landley.net>
Fri, 29 Jul 2016 22:35:29 +0000
(17:35 -0500)
committer
Rob Landley
<rob@landley.net>
Fri, 29 Jul 2016 22:35:29 +0000
(17:35 -0500)
toys/other/timeout.c
patch
|
blob
|
history
diff --git
a/toys/other/timeout.c
b/toys/other/timeout.c
index
0e912f7
..
e39dc7a
100644
(file)
--- a/
toys/other/timeout.c
+++ b/
toys/other/timeout.c
@@
-39,7
+39,8
@@
GLOBALS(
static void handler(int i)
{
- fprintf(stderr, "timeout pid %d signal %d\n", TT.pid, TT.nextsig);
+ if (toys.optflags & FLAG_v)
+ fprintf(stderr, "timeout pid %d signal %d\n", TT.pid, TT.nextsig);
kill(TT.pid, TT.nextsig);
if (TT.k_timeout) {