aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index adbea16ec649..f74458231449 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1265,8 +1265,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1265 p->signal->leader_pid = pid; 1265 p->signal->leader_pid = pid;
1266 tty_kref_put(p->signal->tty); 1266 tty_kref_put(p->signal->tty);
1267 p->signal->tty = tty_kref_get(current->signal->tty); 1267 p->signal->tty = tty_kref_get(current->signal->tty);
1268 set_task_pgrp(p, task_pgrp_nr(current));
1269 set_task_session(p, task_session_nr(current));
1270 attach_pid(p, PIDTYPE_PGID, task_pgrp(current)); 1268 attach_pid(p, PIDTYPE_PGID, task_pgrp(current));
1271 attach_pid(p, PIDTYPE_SID, task_session(current)); 1269 attach_pid(p, PIDTYPE_SID, task_session(current));
1272 list_add_tail_rcu(&p->tasks, &init_task.tasks); 1270 list_add_tail_rcu(&p->tasks, &init_task.tasks);