|
@@ -832,7 +832,7 @@ static void reparent_thread(struct task_struct *p, struct task_struct *father)
|
|
/* If we'd notified the old parent about this child's death,
|
|
/* If we'd notified the old parent about this child's death,
|
|
* also notify the new parent.
|
|
* also notify the new parent.
|
|
*/
|
|
*/
|
|
- if (!ptrace_reparented(p) &&
|
|
|
|
|
|
+ if (!p->ptrace &&
|
|
p->exit_state == EXIT_ZOMBIE && thread_group_empty(p))
|
|
p->exit_state == EXIT_ZOMBIE && thread_group_empty(p))
|
|
do_notify_parent(p, p->exit_signal);
|
|
do_notify_parent(p, p->exit_signal);
|
|
|
|
|