mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined and part of the incoming set, create a temporary set without this signal. * sysdeps/unix/sysv/linux/sigwait.c: Likewise. * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. returning because seconds==0. Add __builtin_expect.
This commit is contained in:
@ -34,7 +34,7 @@ __sleep (unsigned int seconds)
|
||||
unsigned int result;
|
||||
|
||||
/* This is not necessary but some buggy programs depend on this. */
|
||||
if (seconds == 0)
|
||||
if (__builtin_expect (seconds == 0, 0))
|
||||
{
|
||||
#ifdef CANCELLATION_P
|
||||
CANCELLATION_P (THREAD_SELF);
|
||||
|
Reference in New Issue
Block a user