Re: PTRACE_DETACH without stop [Re: [PATCH 04/11] ptrace:implement PTRACE_INTERRUPT]

From: Tejun Heo
Date: Mon May 16 2011 - 08:24:22 EST


On Mon, May 16, 2011 at 02:08:22PM +0200, Jan Kratochvil wrote:
> > Nope. What userland is currently dealing with isn't that type of
> > conditions. It's dealing with nasty side effects of implied and
> > required signals, which will be removed with the new interface.
>
> They won't as there will be new INTERRUPT event and when one wants to trap it
> one has to deal with various signals coming before or after it.

I'd rather lean toward handling it properly from userland. Strictly
defining trap order is too fragile. I think the right thing to do
here is properly documenting how to recognize and handle different
types of traps.

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/