summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-04-25 08:14:08 +0000
committerkib <kib@FreeBSD.org>2015-04-25 08:14:08 +0000
commite8ff65e2ac561fed2737e8a1174939e1ad47dc08 (patch)
tree6dbb457d25603e6e6c77dfcb3c1c5dff61d15483 /lib/libc/gen
parentd0bd361bd7c5ca81d68ea5ef4c8592f9c863b5e0 (diff)
downloadFreeBSD-src-e8ff65e2ac561fed2737e8a1174939e1ad47dc08.zip
FreeBSD-src-e8ff65e2ac561fed2737e8a1174939e1ad47dc08.tar.gz
MFC r281712:
Make wait6(2), waitid(3) and ppoll(2) cancellation points.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/waitid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/gen/waitid.c b/lib/libc/gen/waitid.c
index 795b208..17a2dd6 100644
--- a/lib/libc/gen/waitid.c
+++ b/lib/libc/gen/waitid.c
@@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$");
#include <signal.h>
#include <errno.h>
#include "un-namespace.h"
+#include "libc_private.h"
int
__waitid(idtype_t idtype, id_t id, siginfo_t *info, int flags)
@@ -44,7 +45,9 @@ __waitid(idtype_t idtype, id_t id, siginfo_t *info, int flags)
int status;
pid_t ret;
- ret = _wait6(idtype, id, &status, flags, NULL, info);
+ ret = ((pid_t (*)(idtype_t, id_t, int *, int, struct __wrusage *,
+ siginfo_t *))__libc_interposing[INTERPOS_wait6])(idtype, id,
+ &status, flags, NULL, info);
/*
* According to SUSv4, waitid() shall not return a PID when a
OpenPOWER on IntegriCloud