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

From: Tejun Heo
Date: Mon May 09 2011 - 06:11:05 EST


Hello,

On Mon, May 09, 2011 at 12:42:55AM +0200, Denys Vlasenko wrote:
> To clarify on "sticky":
>
> Does this mean that if tracer userspace won't query PTRACE_GETSIGINFO,
> but will simply do:
>
> waitid(P_PID, tracee, NULL, WSTOPPED);
> ptrace(PTRACE_CONT, tracee, NULL, NULL);
>
> then kernel will generate INTERRUPT trap again and again
> (without letting tracee run) if job stop state of the tracee has changed?

Correct, it will be in infinite trap loop.

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/