|
@@ -1296,7 +1296,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
|
|
|
tracehook_finish_clone(p, clone_flags, trace);
|
|
tracehook_finish_clone(p, clone_flags, trace);
|
|
|
|
|
|
|
|
if (thread_group_leader(p)) {
|
|
if (thread_group_leader(p)) {
|
|
|
- if (clone_flags & CLONE_NEWPID)
|
|
|
|
|
|
|
+ if (is_child_reaper(pid))
|
|
|
p->nsproxy->pid_ns->child_reaper = p;
|
|
p->nsproxy->pid_ns->child_reaper = p;
|
|
|
|
|
|
|
|
p->signal->leader_pid = pid;
|
|
p->signal->leader_pid = pid;
|