projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6420610
)
util: Don't block SIGSYS for new threads
author
Drew Davenport
<ddavenport@chromium.org>
Sat, 23 Feb 2019 07:04:52 +0000
(
00:04
-0700)
committer
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Tue, 26 Feb 2019 18:39:14 +0000
(19:39 +0100)
SIGSYS is needed for programs using seccomp for sandboxing.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/util/u_thread.h
patch
|
blob
|
history
diff --git
a/src/util/u_thread.h
b/src/util/u_thread.h
index 7538d7d634b20bb007c4f18f930f6b0081fed5e5..a46c18d3db203627440ee42300832e8c68e2b2d1 100644
(file)
--- 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