aboutsummaryrefslogtreecommitdiffstats
path: root/src/sig_handlers.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/sig_handlers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sig_handlers.c b/src/sig_handlers.c
index 126777de6..84ca8b78e 100644
--- a/src/sig_handlers.c
+++ b/src/sig_handlers.c
@@ -90,6 +90,8 @@ void blockSignals() {
sigaddset(&sset,SIGCHLD);
sigaddset(&sset,SIGUSR1);
sigaddset(&sset,SIGHUP);
+ sigaddset(&sset,SIGINT);
+ sigaddset(&sset,SIGTERM);
while(sigprocmask(SIG_BLOCK,&sset,NULL)<0 && errno==EINTR);
}
@@ -100,5 +102,7 @@ void unblockSignals() {
sigaddset(&sset,SIGCHLD);
sigaddset(&sset,SIGUSR1);
sigaddset(&sset,SIGHUP);
+ sigaddset(&sset,SIGINT);
+ sigaddset(&sset,SIGTERM);
while(sigprocmask(SIG_UNBLOCK,&sset,NULL)<0 && errno==EINTR);
}