diff options
author | Rob Landley <rob@landley.net> | 2016-07-29 17:35:29 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-07-29 17:35:29 -0500 |
commit | f59f11f8e39ec914602de13e27d816cebfb0d035 (patch) | |
tree | 78abc756324ec5db52c5ae59b5c358ec931e80d3 | |
parent | f20b10ee7b0568ff800588579c7f74ca74f0c23f (diff) | |
download | toybox-f59f11f8e39ec914602de13e27d816cebfb0d035.tar.gz |
Izabera reporeted that FLAG_v was never checked in timeout. (Oops.)
-rw-r--r-- | toys/other/timeout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/other/timeout.c b/toys/other/timeout.c index 0e912f7c..e39dc7a3 100644 --- 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) { |