diff options
Diffstat (limited to 'sysdeps/posix/sleep.c')
-rw-r--r-- | sysdeps/posix/sleep.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sysdeps/posix/sleep.c b/sysdeps/posix/sleep.c index 75d9c18cd3..f15028bd1a 100644 --- a/sysdeps/posix/sleep.c +++ b/sysdeps/posix/sleep.c @@ -1,5 +1,5 @@ /* Sleep for a given number of seconds. POSIX.1 version. - Copyright (C) 1991-2015 Free Software Foundation, Inc. + Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -32,15 +32,6 @@ unsigned int __sleep (unsigned int seconds) { - /* This is not necessary but some buggy programs depend on it. */ - if (__glibc_unlikely (seconds == 0)) - { -#ifdef CANCELLATION_P - CANCELLATION_P (THREAD_SELF); -#endif - return 0; - } - int save_errno = errno; const unsigned int max |