about summary refs log tree commit diff
path: root/nitro.c
diff options
context:
space:
mode:
Diffstat (limited to 'nitro.c')
-rw-r--r--nitro.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nitro.c b/nitro.c
index 3c48a44..3f30507 100644
--- a/nitro.c
+++ b/nitro.c
@@ -1547,13 +1547,14 @@ main(int argc, char *argv[])
 			.sa_mask = allset,
 		};
 		sigaction(SIGALRM, &sa, 0);
-		alarm(3);
 
+		alarm(3);
 		while (1) {
 			int r = waitpid(-1, 0, 0);
 			if (r < 0)
 				break;
 		}
+		alarm(0);
 
 		prn(2, "- nitro: sending SIGKILL to all processes\n");
 		kill(-1, SIGKILL);