aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 240aa6601f5b..9d40367dd5db 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1293,13 +1293,13 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1293 if (clone_flags & CLONE_NEWPID) { 1293 if (clone_flags & CLONE_NEWPID) {
1294 p->nsproxy->pid_ns->child_reaper = p; 1294 p->nsproxy->pid_ns->child_reaper = p;
1295 p->signal->tty = NULL; 1295 p->signal->tty = NULL;
1296 p->signal->pgrp = p->pid; 1296 set_task_pgrp(p, p->pid);
1297 set_task_session(p, p->pid); 1297 set_task_session(p, p->pid);
1298 attach_pid(p, PIDTYPE_PGID, pid); 1298 attach_pid(p, PIDTYPE_PGID, pid);
1299 attach_pid(p, PIDTYPE_SID, pid); 1299 attach_pid(p, PIDTYPE_SID, pid);
1300 } else { 1300 } else {
1301 p->signal->tty = current->signal->tty; 1301 p->signal->tty = current->signal->tty;
1302 p->signal->pgrp = task_pgrp_nr(current); 1302 set_task_pgrp(p, task_pgrp_nr(current));
1303 set_task_session(p, task_session_nr(current)); 1303 set_task_session(p, task_session_nr(current));
1304 attach_pid(p, PIDTYPE_PGID, 1304 attach_pid(p, PIDTYPE_PGID,
1305 task_pgrp(current)); 1305 task_pgrp(current));