> > The one thing that anyone using PTRACE_DETACH,SIGKILL does perhaps expect > > is that the detaching and killing are atomic. That is, it's not possible > > for another thread in the tracer's process to get the WIFEXITED wait result > > for the tracee. Conversely, that race is possible if the tracer does: > > kill(pid, SIGKILL); > > ptrace(PTRACE_DETACH, pid, anything); > > I guess you mean that tracee->real_parent doesn't belong to tracer's > thread-group.
Yes. Thanks, Roland