[PATCH 18/26] wait: Fix WSTOPPED on a ptraced child

2017-06-06 Thread Eric W. Biederman
When ptracing waitpid(pid, WUNTRACED) has two possible meanings. - Wait for ptrace stops from the task with tid == pid - Wait for ordinary stops from the process with tgid == pid The only sensible behavior and the Linux behavior in 2.2 and 2.4 has been to consume both ptrace stops and group stops

[PATCH 18/26] wait: Fix WSTOPPED on a ptraced child

2017-06-06 Thread Eric W. Biederman
When ptracing waitpid(pid, WUNTRACED) has two possible meanings. - Wait for ptrace stops from the task with tid == pid - Wait for ordinary stops from the process with tgid == pid The only sensible behavior and the Linux behavior in 2.2 and 2.4 has been to consume both ptrace stops and group stops