summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_sigsuspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_sigsuspend.c')
-rw-r--r--lib/libpthread/thread/thr_sigsuspend.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_sigsuspend.c b/lib/libpthread/thread/thr_sigsuspend.c
index b64897a..28959c8 100644
--- a/lib/libpthread/thread/thr_sigsuspend.c
+++ b/lib/libpthread/thread/thr_sigsuspend.c
@@ -38,7 +38,7 @@
#include "pthread_private.h"
int
-_libc_sigsuspend(const sigset_t * set)
+_sigsuspend(const sigset_t * set)
{
int ret = -1;
sigset_t oset;
@@ -68,5 +68,15 @@ _libc_sigsuspend(const sigset_t * set)
return (ret);
}
-__weak_reference(_libc_sigsuspend, sigsuspend);
+int
+sigsuspend(const sigset_t * set)
+{
+ int ret;
+
+ _thread_enter_cancellation_point();
+ ret = _sigsuspend(set);
+ _thread_leave_cancellation_point();
+
+ return ret;
+}
#endif
OpenPOWER on IntegriCloud