1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

2004-07-26 Roland McGrath <roland@redhat.com>

* sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
	call to __waitpid.
This commit is contained in:
Roland McGrath
2004-07-27 01:20:15 +00:00
parent 490998a5f2
commit d01ad8fb22

View File

@ -92,7 +92,12 @@ OUR_WAITID (idtype_t idtype, id_t id, siginfo_t *infop, int options)
/* Note the waitid() is a cancellation point. But since we call /* Note the waitid() is a cancellation point. But since we call
waitpid() which itself is a cancellation point we do not have waitpid() which itself is a cancellation point we do not have
to do anything here. */ to do anything here. */
child = __waitpid (pid, &status, options); child = __waitpid (pid, &status,
options
#ifdef WEXITED
&~ WEXITED
#endif
);
if (child == -1) if (child == -1)
/* `waitpid' set `errno' for us. */ /* `waitpid' set `errno' for us. */