Fix typo in signal handler, SIGINT -> SIGCHLD

This commit is contained in:
Quentin Rameau 2017-07-23 01:45:33 +02:00 committed by Laslo Hunhold
parent b04ba86f9d
commit da8a3d2e29

View file

@ -1055,9 +1055,9 @@ main(int argc, char *argv[])
break;
case 0:
/* reap children automatically */
if (signal(SIGINT, SIG_IGN) == SIG_ERR) {
if (signal(SIGCHLD, SIG_IGN) == SIG_ERR) {
fprintf(stderr, "%s: signal: Failed to set SIG_IGN on"
"SIGINT\n", argv0);
"SIGCHLD\n", argv0);
return 1;
}