I see no reason why waitid() can't support other linux-specific flags allowed in sys_wait4().
Signed-off-by: Oleg Nesterov <[email protected]> --- kernel/exit.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/exit.c b/kernel/exit.c index 819f51e..c090738 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -1532,7 +1532,8 @@ SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *, enum pid_type type; long ret; - if (options & ~(WNOHANG|WNOWAIT|WEXITED|WSTOPPED|WCONTINUED)) + if (options & ~(WNOHANG|WNOWAIT|WEXITED|WSTOPPED|WCONTINUED| + __WNOTHREAD|__WCLONE|__WALL)) return -EINVAL; if (!(options & (WEXITED|WSTOPPED|WCONTINUED))) return -EINVAL; -- 1.5.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

