Skip to content

Commit

Permalink
[PATCH] reparent_thread: use remove_parent/add_parent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Mar 29, 2006
1 parent c7c6464 commit 6ac781b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6ac781b

Please sign in to comment.