From a3b0506cfd962d74fa11ad83bf3bee3c6b5663da Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Dec 2008 19:35:01 +0100 Subject: sig_handlers: removed SIGCHLD We have no child processes anymore. Remove the SIGCHLD handler. --- src/sig_handlers.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/sig_handlers.c b/src/sig_handlers.c index 21005da45..833843d0e 100644 --- a/src/sig_handlers.c +++ b/src/sig_handlers.c @@ -23,7 +23,6 @@ #include "log.h" #include -#include #include #include @@ -44,21 +43,6 @@ int handlePendingSignals(void) return 0; } -static void chldSigHandler(G_GNUC_UNUSED int sig) -{ - int status; - int pid; - /* DEBUG("main process got SIGCHLD\n"); */ - while (0 != (pid = wait3(&status, WNOHANG, NULL))) { - if (pid < 0) { - if (errno == EINTR) - continue; - else - break; - } - } -} - void initSigHandlers(void) { struct sigaction sa; @@ -67,8 +51,6 @@ void initSigHandlers(void) sigemptyset(&sa.sa_mask); sa.sa_handler = SIG_IGN; while (sigaction(SIGPIPE, &sa, NULL) < 0 && errno == EINTR) ; - sa.sa_handler = chldSigHandler; - while (sigaction(SIGCHLD, &sa, NULL) < 0 && errno == EINTR) ; signal_handle(SIGUSR1); signal_handle(SIGINT); signal_handle(SIGTERM); -- cgit v1.2.3