On 11/26, Jan Kratochvil wrote:
On Wed, 26 Nov 2014 21:08:22 +0100, Oleg Nesterov wrote:
> Yes. I guess PTRACE_ATTACH should work but it is pointless, this
> thread can't report an event and other ptrace requests won't work.
>
> In fact I think PTRACE_ATTACH should fail in this case...
I have used PTRACE_SEIZE instead:
ptrace(PTRACE_SEIZE, 13902, 0, 0) = 0
Sorry for confusion.
I meant, it would be better if PTRACE_ATTACH/PTRACE_SEIZE failed in
this case. But it is too late to change this old behaviour.
Oleg.