From: Markos Chandras <markos.chand...@imgtec.com>

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

Signed-off-by: Markos Chandras <markos.chand...@imgtec.com>
---
 libc/sysdeps/linux/common/pause.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libc/sysdeps/linux/common/pause.c 
b/libc/sysdeps/linux/common/pause.c
index 32fe839..c35ecd5 100644
--- a/libc/sysdeps/linux/common/pause.c
+++ b/libc/sysdeps/linux/common/pause.c
@@ -25,7 +25,7 @@ int
 # ifdef __LINUXTHREADS_OLD__
 weak_function
 # endif
-pause(void)
+__NC(pause)(void)
 {
        sigset_t set;
 
@@ -36,6 +36,6 @@ pause(void)
           So no need for anything special here.  */
        return sigsuspend(&set);
 }
-lt_strong_alias(pause)
+CANCELLABLE_SYSCALL(int, pause, (void), ())
 LIBC_CANCEL_HANDLED ();                /* sigsuspend handles our cancellation. 
 */
 #endif
-- 
1.8.1.2


_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to