On architectures that don't provide __NR_pause __pause_nocancel is
needed when wanting to perform an uncancelable pause.

Signed-off-by: Matt Fleming <[email protected]>
---
 libc/sysdeps/linux/common/pause.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libc/sysdeps/linux/common/pause.c
b/libc/sysdeps/linux/common/pause.c
index ab16fa7..036f6a3 100644
--- a/libc/sysdeps/linux/common/pause.c
+++ b/libc/sysdeps/linux/common/pause.c
@@ -34,6 +34,7 @@ __libc_pause (void)
   return sigsuspend (&set);
 }
 weak_alias (__libc_pause, pause)
+weak_alias (__libc_pause, __pause_nocancel)

 #ifdef __UCLIBC_HAS_THREADS_NATIVE__
 LIBC_CANCEL_HANDLED ();                /* sigsuspend handles our cancellation. 
 */
-- 
1.7.2.2
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to