handle SIGCLD to catch zombies

This commit is contained in:
Ron Pedde 2004-11-11 19:27:38 +00:00
parent e2bf750033
commit afa041790b

View File

@ -575,6 +575,7 @@ int start_signal_handler(void) {
if((sigemptyset(&set) == -1) || if((sigemptyset(&set) == -1) ||
(sigaddset(&set,SIGINT) == -1) || (sigaddset(&set,SIGINT) == -1) ||
(sigaddset(&set,SIGHUP) == -1) || (sigaddset(&set,SIGHUP) == -1) ||
(sigaddset(&set,SIGCLD) == -1) ||
(sigprocmask(SIG_BLOCK, &set, NULL) == -1)) { (sigprocmask(SIG_BLOCK, &set, NULL) == -1)) {
DPRINTF(ERR_LOG,"Error setting signal set\n"); DPRINTF(ERR_LOG,"Error setting signal set\n");
return -1; return -1;