From 08b258aeb96a6970b950eedc2dc2ab00b04011ee Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 21 Apr 2011 22:31:08 +0200 Subject: 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 Signed-off-by: Bernhard Reutner-Fischer --- include/sys/wait.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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 -- cgit v1.2.3