From 5430d926c54d552794e2ef626b37b7f8bc1ec68e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 17 Feb 2003 10:22:52 +0000 Subject: Update. 2003-02-17 Ulrich Drepper * Makefile (tests): Add tst-basic6. * tst-basic6.c: New file. * tst-basic1.c: Add test for process ID. * Makefile (tests): Add tst-cancel10. * tst-cancel10.c: New file. * Makefile (tests): Add tst-signal4. * tst-signal4.c: New file. * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use __sigismember instead of sigismember. Add __builtin_expect. --- nptl/sysdeps/pthread/pthread_sigmask.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nptl/sysdeps') 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); -- cgit v1.2.3