Don't ignore SIGCHLD in the main thread
We are waiting on the child process.
This commit is contained in:
parent
da8a3d2e29
commit
820f644fe3
1 changed files with 0 additions and 7 deletions
7
quark.c
7
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) {
|
||||
|
|
Loading…
Reference in a new issue