diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index f68d137ffeb..2b1ba8048a1 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -742,7 +742,7 @@ static void reparent_leader(struct task_struct *father, struct task_struct *p, | |||
742 | { | 742 | { |
743 | list_move_tail(&p->sibling, &p->real_parent->children); | 743 | list_move_tail(&p->sibling, &p->real_parent->children); |
744 | 744 | ||
745 | if (task_detached(p)) | 745 | if (p->exit_state == EXIT_DEAD) |
746 | return; | 746 | return; |
747 | /* | 747 | /* |
748 | * If this is a threaded reparent there is no need to | 748 | * If this is a threaded reparent there is no need to |