[hackers] [quark] Don't ignore SIGCHLD in the main thread || Quentin Rameau
commit 820f644fe379d57e8163cf7b8b1577de43f032bc
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sun Jul 23 01:49:52 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
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
_AT_@ -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) {
Received on Mon Jul 24 2017 - 16:49:36 CEST
This archive was generated by hypermail 2.3.0
: Mon Jul 24 2017 - 17:02:13 CEST