diff options
Diffstat (limited to 'lib/libpthread/thread/thr_wait.c')
-rw-r--r-- | lib/libpthread/thread/thr_wait.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_wait.c b/lib/libpthread/thread/thr_wait.c index 8e9c864..98f2c8d 100644 --- a/lib/libpthread/thread/thr_wait.c +++ b/lib/libpthread/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; } |