Messages in this thread | | | From | Roland McGrath <> | Subject | Re: [PATCH 2/4] reparent_thread: fix the "is it traced" check | Date | Wed, 4 Feb 2009 18:16:18 -0800 (PST) |
| |
> reparent_thread() uses ptrace_reparented() to check whether this thread > is ptraced, in that case we should not notify the new parent.
I think at some point in the past, ptracedness could sometimes transfer to the new parent, so this made sense then (before it had that name).
> But ptrace_reparented() is not exactly correct when the reparented thread > is traced by /sbin/init, because forget_original_parent() has already > changed ->real_parent.
Heh. Ok. I think the !p->ptrace check is fine.
Acked-by: Roland McGrath <roland@redhat.com>
Thanks, Roland
| |