mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
2003-02-17 Ulrich Drepper <drepper@redhat.com> * 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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user