diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-04-21 22:31:08 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:41 +0200 |
commit | 08b258aeb96a6970b950eedc2dc2ab00b04011ee (patch) | |
tree | 38a9bd354003b1599f644e2eeadce0f589c18877 /include/sys | |
parent | c4b9ff234e2d18ee51f652467986ed0102667737 (diff) |
waitpid.c: provide __waitpid_nocancel, use cancel.h
Use __wait4_nocancel since wait4 is not available all the time.
Add a comment about not using waitpid syscall.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/wait.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/wait.h b/include/sys/wait.h index b09c28ddf..2b68847e9 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -137,7 +137,10 @@ extern __pid_t wait (__WAIT_STATUS __stat_loc); This function is a cancellation point and therefore not marked with __THROW. */ extern __pid_t waitpid (__pid_t __pid, int *__stat_loc, int __options); +#ifdef _LIBC +extern __typeof(waitpid) __waitpid_nocancel attribute_hidden; libc_hidden_proto(waitpid) +#endif #if defined __USE_SVID || defined __USE_XOPEN # define __need_siginfo_t |