Re: [PATCH 122] ptrace_request(PTRACE_KILL) should not(?) return -ESRCH

2009-11-12 Thread Oleg Nesterov
Just noticed I didn't reply to this message, On 10/30, Roland McGrath wrote: If the tracee was STOPPED/TRACED, then it is equivalent to PTRACE_CONT,SIGKILL. Otherwise it has no effect except it can race with exit() and spoil -exit_code, and wake_up_process() is not good if course. (I

Re: [PATCH 122] ptrace_request(PTRACE_KILL) should not(?) return -ESRCH

2009-10-30 Thread Roland McGrath
Damn, this PTRACE_KILL is so weird. Yes. It's useless. Not regressing on the expectations of stupid old programs that don't really know what it does is all that's required. Apart from that, what it should actually do? It should work like PTRACE_CONT,SIGKILL but the only error case is -ESRCH