diff options
author | Max Kellermann <max@duempel.org> | 2008-12-30 19:35:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-30 19:35:01 +0100 |
commit | a3b0506cfd962d74fa11ad83bf3bee3c6b5663da (patch) | |
tree | 2a651421f1796982e8e85808ac47ed8c70e530b4 | |
parent | f38aaa2bb716b6089dc6345350b9c79cb458f9a3 (diff) | |
download | mpd-a3b0506cfd962d74fa11ad83bf3bee3c6b5663da.tar.gz mpd-a3b0506cfd962d74fa11ad83bf3bee3c6b5663da.tar.xz mpd-a3b0506cfd962d74fa11ad83bf3bee3c6b5663da.zip |
sig_handlers: removed SIGCHLD
We have no child processes anymore. Remove the SIGCHLD handler.
Diffstat (limited to '')
-rw-r--r-- | src/sig_handlers.c | 18 |
1 files changed, 0 insertions, 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 <sys/signal.h> -#include <sys/wait.h> #include <errno.h> #include <glib.h> @@ -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); |