From 820f644fe379d57e8163cf7b8b1577de43f032bc Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Sun, 23 Jul 2017 01:49:52 +0200 Subject: [PATCH] Don't ignore SIGCHLD in the main thread We are waiting on the child process. --- quark.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/quark.c b/quark.c index 524eb9b..69bb5b1 100644 --- a/quark.c +++ b/quark.c @@ -1020,13 +1020,6 @@ main(int argc, char *argv[]) } } - /* reap children automatically */ - if (signal(SIGCHLD, SIG_IGN) == SIG_ERR) { - fprintf(stderr, "%s: signal: Failed to set SIG_IGN on" - "SIGCHLD\n", argv0); - return 1; - } - /* raise the process limit */ rlim.rlim_cur = rlim.rlim_max = maxnprocs; if (setrlimit(RLIMIT_NPROC, &rlim) < 0) {