Re: [PATCH 10/10] ptrace: implement group stop notification forptracer

From: Tejun Heo
Date: Fri May 20 2011 - 04:46:52 EST


Hello, Oleg.

On Thu, May 19, 2011 at 07:13:27PM +0200, Oleg Nesterov wrote:
> OK. I still hope we can avoid this somehow. May be play with exit_code
> so that do_wait() can succeed even if the JOBCTL_TRAPPING tracee is
> running. Perhaps.

I considered that but re-trapping seemed cleaner to me. wait(2)
already depends on retries so I don't think adding TRAPPING wait
introduces too much extra complexity. That said, if you can come up
with something simpler, by all means.

> If only we could notify the tracer from ptrace_trap_notify... IIUC,
> this is the only problem? I mean, apart from this there is no need
> to wake up the tracee.

Yeap, correct.
ahead.

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/