Don't ignore SIGCHLD in the main thread

We are waiting on the child process.
This commit is contained in:
Quentin Rameau 2017-07-23 01:49:52 +02:00 committed by Laslo Hunhold
parent da8a3d2e29
commit 820f644fe3

View file

@ -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 */ /* raise the process limit */
rlim.rlim_cur = rlim.rlim_max = maxnprocs; rlim.rlim_cur = rlim.rlim_max = maxnprocs;
if (setrlimit(RLIMIT_NPROC, &rlim) < 0) { if (setrlimit(RLIMIT_NPROC, &rlim) < 0) {