aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index a94e1c31131b..98eec590ecbd 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -555,9 +555,9 @@ static void reparent_thread(task_t *p, task_t *father, int traced)
555 * anyway, so let go of it. 555 * anyway, so let go of it.
556 */ 556 */
557 p->ptrace = 0; 557 p->ptrace = 0;
558 list_del_init(&p->sibling); 558 remove_parent(p);
559 p->parent = p->real_parent; 559 p->parent = p->real_parent;
560 list_add_tail(&p->sibling, &p->parent->children); 560 add_parent(p);
561 561
562 /* If we'd notified the old parent about this child's death, 562 /* If we'd notified the old parent about this child's death,
563 * also notify the new parent. 563 * also notify the new parent.