From f59f11f8e39ec914602de13e27d816cebfb0d035 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 29 Jul 2016 17:35:29 -0500 Subject: Izabera reporeted that FLAG_v was never checked in timeout. (Oops.) --- toys/other/timeout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toys/other') 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) { -- cgit v1.2.3