dect
/
linux-2.6
Archived
13
0
Fork 0

[PATCH] reparent_thread: use remove_parent/add_parent

Use remove_parent/add_parent instead of open coding.

No changes in kernel/exit.o

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Oleg Nesterov 2006-03-28 16:11:09 -08:00 committed by Linus Torvalds
parent c7c6464117
commit 6ac781b11a
1 changed files with 2 additions and 2 deletions

View File

@ -555,9 +555,9 @@ static void reparent_thread(task_t *p, task_t *father, int traced)
* 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.