From 60d1aea2df9a8cc1e975ed5fee079982612f5966 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 5 Sep 2015 14:18:38 -0500 Subject: Two large thinkos in oneit: -3 was always enabled and signal numbers were overwritten before we set up signal handlers. --- toys/other/oneit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'toys/other/oneit.c') diff --git a/toys/other/oneit.c b/toys/other/oneit.c index 8e4b7133..cc510c15 100644 --- a/toys/other/oneit.c +++ b/toys/other/oneit.c @@ -61,7 +61,10 @@ void oneit_main(void) { int i, pid, pipes[] = {SIGUSR1, SIGUSR2, SIGTERM, SIGINT}; - if (FLAG_3) { + // Setup signal handlers for signals of interest + for (i = 0; i