> - detach(leader, sig); > + if (!(leader->flags & TCB_EXITING)) > + detach(leader, sig); This test should rule out the PTRACE_KILL too, and set TCB_GROUP_EXITING. I committed it with that modification. Thanks, Roland