[PATCH uClibc 3/3] libc/pause: Add __pause_nocancel weak alias.
Markos Chandras
markos.chandras at gmail.com
Fri Dec 14 10:17:46 UTC 2012
From: Markos Chandras <markos.chandras at 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.chandras at imgtec.com>
---
libc/sysdeps/linux/common/pause.c | 1 +
1 file changed, 1 insertion(+)
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.8.0
More information about the uClibc
mailing list