Messages in this thread | | | From | Denys Vlasenko <> | Date | Mon, 14 Feb 2011 19:59:19 +0100 | Subject | Re: [PATCH 1/1] ptrace: make sure do_wait() won't hang after PTRACE_ATTACH |
| |
On Mon, Feb 14, 2011 at 6:39 PM, Oleg Nesterov <oleg@redhat.com> wrote: >> Ah, I see. Is there any way debugger can distinguish between these two >> different stops? > > IIRC, the (only?) way to distinguish is to check last_siginfo != NULL > via ptrace(PTRACE_GETSIGINFO).
Right. ptrace(PTRACE_GETSIGINFO) will fail on non-signal-delivery stops. Thus, it can be used to distinguish different kinds of SIGSTOPs in my example. -- vda
| |