summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_wait4.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_wait4.c')
-rw-r--r--lib/libkse/thread/thr_wait4.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_wait4.c b/lib/libkse/thread/thr_wait4.c
index 07b0c84..9f23584 100644
--- a/lib/libkse/thread/thr_wait4.c
+++ b/lib/libkse/thread/thr_wait4.c
@@ -43,11 +43,12 @@ __weak_reference(__wait4, wait4);
pid_t
__wait4(pid_t pid, int *istat, int options, struct rusage *rusage)
{
+ struct pthread *curthread = _get_curthread();
pid_t ret;
- _thread_enter_cancellation_point();
+ _thr_enter_cancellation_point(curthread);
ret = _wait4(pid, istat, options, rusage);
- _thread_leave_cancellation_point();
+ _thr_leave_cancellation_point(curthread);
return ret;
}
OpenPOWER on IntegriCloud