diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 61516b89cb6c..fd65bca38a93 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1283,8 +1283,8 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1283 | 1283 | ||
1284 | if (thread_group_leader(p)) { | 1284 | if (thread_group_leader(p)) { |
1285 | p->signal->tty = current->signal->tty; | 1285 | p->signal->tty = current->signal->tty; |
1286 | p->signal->pgrp = process_group(current); | 1286 | p->signal->pgrp = task_pgrp_nr(current); |
1287 | set_signal_session(p->signal, process_session(current)); | 1287 | set_task_session(p, task_session_nr(current)); |
1288 | attach_pid(p, PIDTYPE_PGID, task_pgrp(current)); | 1288 | attach_pid(p, PIDTYPE_PGID, task_pgrp(current)); |
1289 | attach_pid(p, PIDTYPE_SID, task_session(current)); | 1289 | attach_pid(p, PIDTYPE_SID, task_session(current)); |
1290 | 1290 | ||