Messages in this thread Patch in this message | | | Date | Tue, 20 Oct 2015 19:17:59 +0200 | From | Oleg Nesterov <> | Subject | [PATCH 2/2] wait: allow sys_waitid() to use __WNOTHREAD/__WCLONE/__WALL |
| |
I see no reason why waitid() can't support other linux-specific flags allowed in sys_wait4().
Signed-off-by: Oleg Nesterov <oleg@redhat.com> --- 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
| |