diff options
author | Drew Davenport <[email protected]> | 2019-02-23 00:04:52 -0700 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-02-26 19:39:14 +0100 |
commit | 1fd79b4b6d46c95892efb10f2571d36b110224f9 (patch) | |
tree | 91521b25bc737af40c45a2098725b4717c70f53d /src | |
parent | 64206102fc17b1b81b6308f91f86d22d99d0a659 (diff) |
util: Don't block SIGSYS for new threads
SIGSYS is needed for programs using seccomp for sandboxing.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/util/u_thread.h | 3 |
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 |