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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nitro.c b/nitro.c
index ac8aaae..545ea15 100644
--- a/nitro.c
+++ b/nitro.c
@@ -1558,6 +1558,14 @@ main(int argc, char *argv[])
 
 		prn(2, "- nitro: sending SIGKILL to all processes\n");
 		kill(-1, SIGKILL);
+
+		alarm(1);
+		while (1) {
+			int r = waitpid(-1, 0, 0);
+			if (r < 0)
+				break;
+		}
+		alarm(0);
 	}
 	if (real_pid1) {
 		prn(2, "- nitro: system %s\n",