summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 96716fd2237..d7815f57088 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -388,7 +388,7 @@ void daemonize(const char *name, ...)
get_nsproxy(&init_nsproxy);
switch_task_namespaces(current, &init_nsproxy);
}
- set_special_pids(find_pid(1));
+ set_special_pids(&init_struct_pid);
proc_clear_tty(current);
/* Block and flush all signals */