Commit 706a871b authored by Dominik Taborsky's avatar Dominik Taborsky

server: don't block the SIGPROF signal

parent a79e63da
......@@ -460,6 +460,7 @@ static int dt_start_id(dthread_t *thread)
// Start thread
sigset_t mask_all, mask_old;
sigfillset(&mask_all);
sigdelset(&mask_all, SIGPROF);
pthread_sigmask(SIG_SETMASK, &mask_all, &mask_old);
int res = pthread_create(&thread->_thr, /* pthread_t */
&thread->_attr, /* pthread_attr_t */
......
......@@ -150,6 +150,7 @@ static void setup_signals(void)
/* Block all signals. */
static sigset_t all;
sigfillset(&all);
sigdelset(&all, SIGPROF);
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