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

hurd: Add WSTOPPED/WCONTINUED/WEXITED/WNOWAIT support [BZ #23091]

The new __proc_waitid RPC now expects WEXITED to be passed, allowing to
properly implement waitid, and thus define the missing W* macros
(according to FreeBSD values).
This commit is contained in:
Samuel Thibault
2020-12-28 23:37:04 +01:00
parent f9c3cf2864
commit f6abd97028
3 changed files with 43 additions and 17 deletions

View File

@ -24,3 +24,11 @@
/* Bits in the third argument to `waitpid'. */
#define WNOHANG 1 /* Don't block waiting. */
#define WUNTRACED 2 /* Report status of stopped children. */
/* Bits in the fourth argument to `waitid'. */
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
# define WSTOPPED WUNTRACED /* Report stopped child. */
# define WCONTINUED 4 /* Report continued child. */
# define WNOWAIT 8 /* Don't reap, just poll status. */
# define WEXITED 16 /* Report dead child. */
#endif