summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--src/dudki.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dudki.cc b/src/dudki.cc
index 3c50e56..b769109 100644
--- a/src/dudki.cc
+++ b/src/dudki.cc
@@ -230,2 +230,7 @@ int main(int argc,char **argv) {
signal(SIGHUP,sighup_handler);
+ sigset_t sset;
+ sigemptyset(&sset);
+ sigaddset(&sset,SIGINT); sigaddset(&sset,SIGABRT);
+ sigaddset(&sset,SIGTERM); sigaddset(&sset,SIGHUP);
+ sigprocmask(SIG_UNBLOCK,&sset,NULL);
while(!finishing) {