diff options
Diffstat (limited to 'lib/libpthread/thread/thr_wait4.c')
-rw-r--r-- | lib/libpthread/thread/thr_wait4.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_wait4.c b/lib/libpthread/thread/thr_wait4.c index 6c4e068..05ed065 100644 --- a/lib/libpthread/thread/thr_wait4.c +++ b/lib/libpthread/thread/thr_wait4.c @@ -38,7 +38,7 @@ #include <pthread.h> #include "pthread_private.h" -__weak_reference(_wait4, wait4); +__weak_reference(__wait4, wait4); pid_t _wait4(pid_t pid, int *istat, int options, struct rusage * rusage) @@ -68,3 +68,15 @@ _wait4(pid_t pid, int *istat, int options, struct rusage * rusage) return (ret); } + +pid_t +__wait4(pid_t pid, int *istat, int options, struct rusage *rusage) +{ + pid_t ret; + + _thread_enter_cancellation_point(); + ret = _wait4(pid, istat, options, rusage); + _thread_leave_cancellation_point(); + + return ret; +} |