summaryrefslogtreecommitdiffabout
path: root/src
Unidiff
Diffstat (limited to 'src') (more/less context) (ignore 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
@@ -225,12 +225,17 @@ int main(int argc,char **argv) {
225 pid_file pidfile; 225 pid_file pidfile;
226 pidfile.set(config.pidfile); 226 pidfile.set(config.pidfile);
227 signal(SIGINT,lethal_signal_handler); 227 signal(SIGINT,lethal_signal_handler);
228 signal(SIGABRT,lethal_signal_handler); 228 signal(SIGABRT,lethal_signal_handler);
229 signal(SIGTERM,lethal_signal_handler); 229 signal(SIGTERM,lethal_signal_handler);
230 signal(SIGHUP,sighup_handler); 230 signal(SIGHUP,sighup_handler);
231 sigset_t sset;
232 sigemptyset(&sset);
233 sigaddset(&sset,SIGINT); sigaddset(&sset,SIGABRT);
234 sigaddset(&sset,SIGTERM); sigaddset(&sset,SIGHUP);
235 sigprocmask(SIG_UNBLOCK,&sset,NULL);
231 while(!finishing) { 236 while(!finishing) {
232 check_herd(config); 237 check_herd(config);
233 sleep(config.check_interval); 238 sleep(config.check_interval);
234 } 239 }
235 } 240 }
236 break; 241 break;