Re: [PATCH UPDATED 8/9] ptrace: move JOBCTL_TRAPPING wait towait(2) and ptrace_check_attach()

From: Oleg Nesterov
Date: Mon May 16 2011 - 12:06:43 EST

On 05/16, Tejun Heo wrote:
> On Mon, May 16, 2011 at 02:11:42PM +0200, Oleg Nesterov wrote:
> > Anyway, restart_syscall() is not right for do_wait(), especially with the
> > next patch. If the caller was woken by the real signal which has a handler,
> > we should not restart without SA_RESTART.
> I don't think it really matters and might even be incorrect if we do
> that. e.g. we would introduce -EINTR failure to WNOHANG waits.


> The only case that I think of where this could be visible is sleeping
> wait(2), checking the state again after being woken up and gets signal
> while waiting for TRAPPING. In this case, yeap, we should fail with

Yes, -EINTR or restart if SA_RESTART.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at