1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
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:
Ulrich Drepper
2003-02-17 10:22:52 +00:00
parent 179ff175df
commit 5430d926c5
6 changed files with 200 additions and 7 deletions

View File

@ -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);