Restore default handlers in children
This commit is contained in:
parent
1c5f45c090
commit
24167b5c07
1 changed files with 3 additions and 0 deletions
3
quark.c
3
quark.c
|
@ -1057,6 +1057,9 @@ main(int argc, char *argv[])
|
||||||
fprintf(stderr, "%s: fork: %s\n", argv0, strerror(errno));
|
fprintf(stderr, "%s: fork: %s\n", argv0, strerror(errno));
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
|
/* restore default handlers */
|
||||||
|
handlesignals(SIG_DFL);
|
||||||
|
|
||||||
/* reap children automatically */
|
/* reap children automatically */
|
||||||
if (signal(SIGCHLD, SIG_IGN) == SIG_ERR) {
|
if (signal(SIGCHLD, SIG_IGN) == SIG_ERR) {
|
||||||
die("%s: signal: Failed to set SIG_IGN on SIGCHLD\n",
|
die("%s: signal: Failed to set SIG_IGN on SIGCHLD\n",
|
||||||
|
|
Loading…
Reference in a new issue