aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index f2b494d7c557..17aed4378eda 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1296,7 +1296,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1296 tracehook_finish_clone(p, clone_flags, trace); 1296 tracehook_finish_clone(p, clone_flags, trace);
1297 1297
1298 if (thread_group_leader(p)) { 1298 if (thread_group_leader(p)) {
1299 if (clone_flags & CLONE_NEWPID) 1299 if (is_child_reaper(pid))
1300 p->nsproxy->pid_ns->child_reaper = p; 1300 p->nsproxy->pid_ns->child_reaper = p;
1301 1301
1302 p->signal->leader_pid = pid; 1302 p->signal->leader_pid = pid;