summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/u_thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/u_thread.h b/src/util/u_thread.h
index 7538d7d634b..a46c18d3db2 100644
--- a/src/util/u_thread.h
+++ b/src/util/u_thread.h
@@ -44,7 +44,8 @@ static inline thrd_t u_thread_create(int (*routine)(void *), void *param)
int ret;
sigfillset(&new_set);
- pthread_sigmask(SIG_SETMASK, &new_set, &saved_set);
+ sigdelset(&new_set, SIGSYS);
+ pthread_sigmask(SIG_BLOCK, &new_set, &saved_set);
ret = thrd_create( &thread, routine, param );
pthread_sigmask(SIG_SETMASK, &saved_set, NULL);
#else