Re: Allow debuger to examine real parent

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Thu Mar 09 2000 - 10:24:11 EST


Pavel Machek wrote:
> - p->pid, p->p_pptr->pid,
> + p->pid, p->p_opptr->pid, p->p_pptr->pid != p->p_opptr->pid ? p->p_opptr->pid : 0,

I think you should compare p->p_pptr and p->p_opptr to check for a
tracer, not the pid values. Because the pid values can be the same even
when there's a tracer:

  - the real parent is tracing its child; or

  - someone used CLONE_PID

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:15 EST