Commit de486f67 authored by Daniel Salzman's avatar Daniel Salzman

knotd: use default signal handler for commont coredump-like signals

closes #634
parent 84060c6a
......@@ -125,8 +125,8 @@ struct signal {
/*! \brief Signals used by the server. */
static const struct signal SIGNALS[] = {
{ SIGHUP, true }, /* Reload server. */
{ SIGINT, true }, /* Terminate server .*/
{ SIGTERM, true },
{ SIGINT, true }, /* Terminate server. */
{ SIGTERM, true }, /* Terminate server. */
{ SIGALRM, false }, /* Internal thread synchronization. */
{ SIGPIPE, false }, /* Ignored. Some I/O errors. */
{ 0 }
......@@ -159,6 +159,12 @@ static void setup_signals(void)
static sigset_t all;
sigfillset(&all);
sigdelset(&all, SIGPROF);
sigdelset(&all, SIGQUIT);
sigdelset(&all, SIGILL);
sigdelset(&all, SIGABRT);
sigdelset(&all, SIGBUS);
sigdelset(&all, SIGFPE);
sigdelset(&all, SIGSEGV);
pthread_sigmask(SIG_SETMASK, &all, NULL);
/* Setup handlers. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment