aboutsummaryrefslogtreecommitdiff
path: root/lib/libkse/thread/thr_wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_wait.c')
-rw-r--r--lib/libkse/thread/thr_wait.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_wait.c b/lib/libkse/thread/thr_wait.c
index 8e9c8644860b..98f2c8d558f3 100644
--- a/lib/libkse/thread/thr_wait.c
+++ b/lib/libkse/thread/thr_wait.c
@@ -37,11 +37,12 @@ __weak_reference(_wait, wait);
pid_t
_wait(int *istat)
{
+ struct pthread *curthread = _get_curthread();
pid_t ret;
- _thread_enter_cancellation_point();
+ _thr_enter_cancellation_point(curthread);
ret = __wait(istat);
- _thread_leave_cancellation_point();
+ _thr_leave_cancellation_point(curthread);
return ret;
}