about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sleep.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-17 20:46:06 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-17 20:46:06 +0000
commitaa3cee213a291e2fd7298579059706622dd16793 (patch)
tree03e41fae515f7332a202683818f4d1d98053381a /sysdeps/unix/sysv/linux/sleep.c
parent047aec8f19cdb702f2a0645643f38a12033c353d (diff)
downloadglibc-aa3cee213a291e2fd7298579059706622dd16793.tar.gz
glibc-aa3cee213a291e2fd7298579059706622dd16793.tar.xz
glibc-aa3cee213a291e2fd7298579059706622dd16793.zip
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sleep.c')
-rw-r--r--sysdeps/unix/sysv/linux/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sleep.c b/sysdeps/unix/sysv/linux/sleep.c
index ac92f6eced..8df67173c1 100644
--- a/sysdeps/unix/sysv/linux/sleep.c
+++ b/sysdeps/unix/sysv/linux/sleep.c
@@ -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);