Messages in this thread Patch in this message | | | Date | Wed, 16 Mar 2016 00:34:52 +0100 | From | Oleg Nesterov <> | Subject | [PATCH 2/2] wait: allow sys_waitid() to accept __WNOTHREAD/__WCLONE/__WALL |
| |
I see no reason why waitid() can't support other linux-specific flags allowed in sys_wait4().
In particular this change can help if we reconsider the previous change which adds the "automagical" __WALL for debugger.
Signed-off-by: Oleg Nesterov <oleg@redhat.com> --- kernel/exit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/exit.c b/kernel/exit.c index c112abb..9db1f4a 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -1533,7 +1533,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; -- 2.5.0
| |