diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 232c4bc8bcc9..0272305bf855 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -548,7 +548,7 @@ static void reparent_leader(struct task_struct *father, struct task_struct *p, | |||
548 | p->exit_state == EXIT_ZOMBIE && thread_group_empty(p)) { | 548 | p->exit_state == EXIT_ZOMBIE && thread_group_empty(p)) { |
549 | if (do_notify_parent(p, p->exit_signal)) { | 549 | if (do_notify_parent(p, p->exit_signal)) { |
550 | p->exit_state = EXIT_DEAD; | 550 | p->exit_state = EXIT_DEAD; |
551 | list_move_tail(&p->sibling, dead); | 551 | list_add(&p->ptrace_entry, dead); |
552 | } | 552 | } |
553 | } | 553 | } |
554 | 554 | ||
@@ -587,8 +587,8 @@ static void forget_original_parent(struct task_struct *father) | |||
587 | 587 | ||
588 | BUG_ON(!list_empty(&father->children)); | 588 | BUG_ON(!list_empty(&father->children)); |
589 | 589 | ||
590 | list_for_each_entry_safe(p, n, &dead_children, sibling) { | 590 | list_for_each_entry_safe(p, n, &dead_children, ptrace_entry) { |
591 | list_del_init(&p->sibling); | 591 | list_del_init(&p->ptrace_entry); |
592 | release_task(p); | 592 | release_task(p); |
593 | } | 593 | } |
594 | } | 594 | } |