diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 2befc299129d..304b5410d746 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -977,7 +977,7 @@ asmlinkage long sys_setpgid(pid_t pid, pid_t pgid) | |||
977 | detach_pid(p, PIDTYPE_PGID); | 977 | detach_pid(p, PIDTYPE_PGID); |
978 | pid = find_vpid(pgid); | 978 | pid = find_vpid(pgid); |
979 | attach_pid(p, PIDTYPE_PGID, pid); | 979 | attach_pid(p, PIDTYPE_PGID, pid); |
980 | p->signal->pgrp = pid_nr(pid); | 980 | set_task_pgrp(p, pid_nr(pid)); |
981 | } | 981 | } |
982 | 982 | ||
983 | err = 0; | 983 | err = 0; |