aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-07-29 17:35:29 -0500
committerRob Landley <rob@landley.net>2016-07-29 17:35:29 -0500
commitf59f11f8e39ec914602de13e27d816cebfb0d035 (patch)
tree78abc756324ec5db52c5ae59b5c358ec931e80d3 /toys/other
parentf20b10ee7b0568ff800588579c7f74ca74f0c23f (diff)
downloadtoybox-f59f11f8e39ec914602de13e27d816cebfb0d035.tar.gz
Izabera reporeted that FLAG_v was never checked in timeout. (Oops.)
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/timeout.c3
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) {