Do not catch SIGQUIT

So that it can be used to make a core dump during manual debugging
This commit is contained in:
Andrew Bettison 2013-11-08 18:25:33 +10:30
parent 1b906f3f11
commit 32ce7f5ed9

View File

@ -108,11 +108,9 @@ int server(const struct cli_parsed *parsed)
sigemptyset(&sig.sa_mask); // Block the same signals during handler
sigaddset(&sig.sa_mask, SIGHUP);
sigaddset(&sig.sa_mask, SIGINT);
sigaddset(&sig.sa_mask, SIGQUIT);
sig.sa_flags = 0;
sigaction(SIGHUP, &sig, NULL);
sigaction(SIGINT, &sig, NULL);
sigaction(SIGQUIT, &sig, NULL);
/* Record PID to advertise that the server is now running */
char filename[1024];