commit 2d8621e7f864f9b1d26ca544c81b1edeb030ff03 parent 85cab4003945caf1f20fbd916c129347ec3136a7 Author: sin <sin@2f30.org> Date: Sat, 19 Jul 2014 19:49:23 +0100 Block all signals in the signal handler Diffstat:
M | crond.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/crond.c b/crond.c @@ -455,6 +455,7 @@ main(int argc, char *argv[]) } sa.sa_handler = sighandler; + sigfillset(&sa.sa_mask); sa.sa_flags = SA_RESTART; sigaction(SIGCHLD, &sa, NULL); sigaction(SIGHUP, &sa, NULL);