diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2006-03-29 00:11:05 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-29 02:36:41 (GMT) |
commit | 9b678ece42893b53aae5ed7cb8d7cb261cacb72c (patch) | |
tree | 2fc3cdcdc2940127885219b8d4142f8317b46bbd /kernel/exit.c | |
parent | 8fafabd86f1b75ed3cc6a6ffbe6c3e53e3d8457d (diff) | |
download | linux-9b678ece42893b53aae5ed7cb8d7cb261cacb72c.tar.xz |
[PATCH] don't use REMOVE_LINKS/SET_LINKS for reparenting
There are places where kernel uses REMOVE_LINKS/SET_LINKS while changing
process's ->parent. Use add_parent/remove_parent instead, they don't abuse
of global process list.
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>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index df26c33..5b5e8b6 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -238,10 +238,10 @@ static void reparent_to_init(void) ptrace_unlink(current); /* Reparent to init */ - REMOVE_LINKS(current); + remove_parent(current); current->parent = child_reaper; current->real_parent = child_reaper; - SET_LINKS(current); + add_parent(current); /* Set the exit signal to SIGCHLD so we signal init on exit */ current->exit_signal = SIGCHLD; |