diff options
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 df26c33037d2..5b5e8b67680e 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
| @@ -238,10 +238,10 @@ static void reparent_to_init(void) | |||
| 238 | 238 | ||
| 239 | ptrace_unlink(current); | 239 | ptrace_unlink(current); |
| 240 | /* Reparent to init */ | 240 | /* Reparent to init */ |
| 241 | REMOVE_LINKS(current); | 241 | remove_parent(current); |
| 242 | current->parent = child_reaper; | 242 | current->parent = child_reaper; |
| 243 | current->real_parent = child_reaper; | 243 | current->real_parent = child_reaper; |
| 244 | SET_LINKS(current); | 244 | add_parent(current); |
| 245 | 245 | ||
| 246 | /* Set the exit signal to SIGCHLD so we signal init on exit */ | 246 | /* Set the exit signal to SIGCHLD so we signal init on exit */ |
| 247 | current->exit_signal = SIGCHLD; | 247 | current->exit_signal = SIGCHLD; |
