diff --git a/initd/signal_linux.c b/initd/signal_linux.c index aed049b..9d5d29d 100644 --- a/initd/signal_linux.c +++ b/initd/signal_linux.c @@ -30,6 +30,11 @@ int sigsetup(void) return -1; } + sigemptyset(&mask); + sigaddset(&mask, SIGCHLD); + sigaddset(&mask, SIGINT); + sigaddset(&mask, SIGTERM); + sfd = signalfd(-1, &mask, SFD_CLOEXEC); if (sfd == -1) { perror("signalfd");