From: Oleg Nesterov Use remove_parent/add_parent instead of open coding. No changes in kernel/exit.o Signed-off-by: Oleg Nesterov Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton --- kernel/exit.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN kernel/exit.c~reparent_thread-use-remove_parent-add_parent kernel/exit.c --- devel/kernel/exit.c~reparent_thread-use-remove_parent-add_parent 2006-02-23 19:41:27.000000000 -0800 +++ devel-akpm/kernel/exit.c 2006-02-23 19:41:27.000000000 -0800 @@ -553,9 +553,9 @@ static void reparent_thread(task_t *p, t * anyway, so let go of it. */ p->ptrace = 0; - list_del_init(&p->sibling); + remove_parent(p); p->parent = p->real_parent; - list_add_tail(&p->sibling, &p->parent->children); + add_parent(p); /* If we'd notified the old parent about this child's death, * also notify the new parent. _