summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/pthread/pthread_sigmask.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/pthread/pthread_sigmask.c')
-rw-r--r--nptl/sysdeps/pthread/pthread_sigmask.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nptl/sysdeps/pthread/pthread_sigmask.c b/nptl/sysdeps/pthread/pthread_sigmask.c
index 3a3fa351aa..4114e0be2f 100644
--- a/nptl/sysdeps/pthread/pthread_sigmask.c
+++ b/nptl/sysdeps/pthread/pthread_sigmask.c
@@ -34,8 +34,7 @@ pthread_sigmask (how, newmask, oldmask)
/* The only thing we have to make sure here is that SIGCANCEL is not
blocked. */
if (newmask != NULL
- && (how == SIG_SETMASK || how == SIG_BLOCK)
- && sigismember (newmask, SIGCANCEL))
+ && __builtin_expect (__sigismember (newmask, SIGCANCEL), 0))
{
local_newmask = *newmask;
sigdelset (&local_newmask, SIGCANCEL);