summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_wait4.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2002-05-02 19:58:43 +0000
committerarchie <archie@FreeBSD.org>2002-05-02 19:58:43 +0000
commitb163f64d4ed7fcae172128db398cbc49e9c22536 (patch)
tree1119b760226c7870af16a85be9b494a6c3fa3a24 /lib/libc_r/uthread/uthread_wait4.c
parent7efe637f5aea25bb5a5edc7e5b0b376e4bfaa671 (diff)
downloadFreeBSD-src-b163f64d4ed7fcae172128db398cbc49e9c22536.zip
FreeBSD-src-b163f64d4ed7fcae172128db398cbc49e9c22536.tar.gz
Make these functions cancellation points like they should be:
poll(2), readv(2), select(2), wait4(2), writev(2). PR: bin/37658 Reviewed by: deischen MFC after: 1 week
Diffstat (limited to 'lib/libc_r/uthread/uthread_wait4.c')
-rw-r--r--lib/libc_r/uthread/uthread_wait4.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_wait4.c b/lib/libc_r/uthread/uthread_wait4.c
index 6c4e068..05ed065 100644
--- a/lib/libc_r/uthread/uthread_wait4.c
+++ b/lib/libc_r/uthread/uthread_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;
+}
OpenPOWER on IntegriCloud