diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-05-02 08:03:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-05-02 08:03:22 +0000 |
commit | ae0badd7421c76b6e5820e80a2ab3c56786dff18 (patch) | |
tree | 5409c9fd60916a0e5f8c1fbc26d1ac6c1d82fe15 /libc/unistd/usleep.c | |
parent | f2c7b3709620eb2b36e956f77ffa5e10a50f285c (diff) |
Daniel Jacobowitz: sleep()/usleep() relies on nanosleep() being a cancellation
point but the files have "libc_hidden_proto(nanosleep)" which means it always
calls the libc.so version, never the wrapped version in libpthread.so that's a
cancellation point.
Diffstat (limited to 'libc/unistd/usleep.c')
-rw-r--r-- | libc/unistd/usleep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/unistd/usleep.c b/libc/unistd/usleep.c index 09bb09f41..91b88278d 100644 --- a/libc/unistd/usleep.c +++ b/libc/unistd/usleep.c @@ -9,7 +9,7 @@ #include <sys/types.h> #include <unistd.h> -libc_hidden_proto(nanosleep) +/*libc_hidden_proto(nanosleep) need the reloc for cancellation*/ int usleep (__useconds_t usec) { |