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

From: Tejun Heo
Date: Thu May 12 2011 - 06:24:56 EST


On Wed, May 11, 2011 at 10:21:22PM +0200, Tejun Heo wrote:
> On Wed, May 11, 2011 at 10:18:48PM +0200, Tejun Heo wrote:
> > Hmmm... this whole re-trapping thing is turning out to be more
> > problematic than expected. Maybe it would be better to somehow notify
> > ptracer directly from prepare_signal().
>
> I need to think more about this but basically we just need to modify
> exit_code, last_siginfo and then wake up the parent, all of which can
> be done safely while holding child's siglock. I'll play with it.

This too involves much more subtleties than making tracee actually
retrap. I'll just make retrapping safe.

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/