X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=door_daemon%2Fsig_handler.c;h=5cdaaa15a39db0bf1c93217c417e2a270518daea;hp=2a17ebe291ec03c2573fe1e2769003d5e46c8b43;hb=4abb3ec7655723725bd62ffc53600a6396de1513;hpb=8f8ffe1d0ca5e05b9942f7cacf28dd4a348053c2 diff --git a/door_daemon/sig_handler.c b/door_daemon/sig_handler.c index 2a17ebe..5cdaaa1 100644 --- a/door_daemon/sig_handler.c +++ b/door_daemon/sig_handler.c @@ -96,6 +96,7 @@ int signal_init() (sigaction(SIGHUP, &act, NULL) < 0) || (sigaction(SIGUSR1, &act, NULL) < 0) || (sigaction(SIGUSR2, &act, NULL) < 0) || + (sigaction(SIGCHLD, &act_ign, NULL) < 0) || (sigaction(SIGPIPE, &act_ign, NULL) < 0)) { log_printf(ERROR, "signal handling init failed (sigaction error: %s)", strerror(errno)); @@ -158,6 +159,7 @@ void signal_stop() sigaction(SIGUSR1, &act, NULL); sigaction(SIGUSR2, &act, NULL); sigaction(SIGPIPE, &act, NULL); + sigaction(SIGCHLD, &act, NULL); close(sig_pipe_fds[0]); close(sig_pipe_fds[1]);