From 4f8a6f291a231410a03c438bc9d63a7beb861e7b Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 10 Jul 2004 19:59:06 +0000 Subject: fixed signal handling, so that dudki can be HUP-ped more than once. --- diff --git a/src/dudki.cc b/src/dudki.cc index 3c50e56..b769109 100644 --- a/src/dudki.cc +++ b/src/dudki.cc @@ -228,6 +228,11 @@ int main(int argc,char **argv) { signal(SIGABRT,lethal_signal_handler); signal(SIGTERM,lethal_signal_handler); 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) { check_herd(config); sleep(config.check_interval); -- cgit v0.9.0.2