commit 820f644fe379d57e8163cf7b8b1577de43f032bc
Author: Quentin Rameau <[email protected]>
AuthorDate: Sun Jul 23 01:49:52 2017 +0200
Commit: Laslo Hunhold <[email protected]>
CommitDate: Mon Jul 24 16:49:24 2017 +0200
Don't ignore SIGCHLD in the main thread
We are waiting on the child process.
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) {