summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_sigwait.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_sigwait.c')
-rw-r--r--lib/libpthread/thread/thr_sigwait.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libpthread/thread/thr_sigwait.c b/lib/libpthread/thread/thr_sigwait.c
index 43f9321..76f5368 100644
--- a/lib/libpthread/thread/thr_sigwait.c
+++ b/lib/libpthread/thread/thr_sigwait.c
@@ -137,9 +137,9 @@ __sigtimedwait(const sigset_t *set, siginfo_t *info,
struct pthread *curthread = _get_curthread();
int ret;
- _thr_enter_cancellation_point(curthread);
+ _thr_cancel_enter(curthread);
ret = lib_sigtimedwait(set, info, timeout);
- _thr_leave_cancellation_point(curthread);
+ _thr_cancel_leave(curthread, 1);
return (ret);
}
@@ -155,9 +155,9 @@ __sigwaitinfo(const sigset_t *set, siginfo_t *info)
struct pthread *curthread = _get_curthread();
int ret;
- _thr_enter_cancellation_point(curthread);
+ _thr_cancel_enter(curthread);
ret = lib_sigtimedwait(set, info, NULL);
- _thr_leave_cancellation_point(curthread);
+ _thr_cancel_leave(curthread, 1);
return (ret);
}
@@ -173,7 +173,7 @@ __sigwait(const sigset_t *set, int *sig)
struct pthread *curthread = _get_curthread();
int ret;
- _thr_enter_cancellation_point(curthread);
+ _thr_cancel_enter(curthread);
ret = lib_sigtimedwait(set, NULL, NULL);
if (ret > 0) {
*sig = ret;
@@ -181,7 +181,7 @@ __sigwait(const sigset_t *set, int *sig)
}
else
ret = -1;
- _thr_leave_cancellation_point(curthread);
+ _thr_cancel_leave(curthread, 1);
return (ret);
}
OpenPOWER on IntegriCloud