Re: [PATCH 03/10] ptrace: implement PTRACE_SEIZE

From: Tejun Heo
Date: Wed Jun 01 2011 - 01:34:23 EST


Hello, Oleg.

On Tue, May 31, 2011 at 09:08:09PM +0200, Oleg Nesterov wrote:
> Speaking of this particular problem, it is really annoying. The leader
> exits, and it even notifies the tracer. For what? waitpid() returns 0
> or hangs depending on WNOHANG, any ptrace() request fails with ESRCH.

Hmm... can't we just allow PTRACE_DETACH after PTRACE_EVENT_EXIT is
reported? It doesn't involve changes to any visible behavior (other
than allowing DETACH of course) and we don't lose anything. Haven't
really thought about the implementation but I don't think this would
be too difficult.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/