summaryrefslogtreecommitdiff
path: root/initd
diff options
context:
space:
mode:
Diffstat (limited to 'initd')
-rw-r--r--initd/signal_linux.c5
1 files changed, 5 insertions, 0 deletions
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");