aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sys.c')
-rw-r--r--kernel/sys.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index 7306f9421aac..14c4c5613118 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -35,6 +35,7 @@
35#include <linux/seccomp.h> 35#include <linux/seccomp.h>
36#include <linux/cpu.h> 36#include <linux/cpu.h>
37#include <linux/ptrace.h> 37#include <linux/ptrace.h>
38#include <linux/fs_struct.h>
38 39
39#include <linux/compat.h> 40#include <linux/compat.h>
40#include <linux/syscalls.h> 41#include <linux/syscalls.h>
@@ -1014,10 +1015,8 @@ SYSCALL_DEFINE2(setpgid, pid_t, pid, pid_t, pgid)
1014 if (err) 1015 if (err)
1015 goto out; 1016 goto out;
1016 1017
1017 if (task_pgrp(p) != pgrp) { 1018 if (task_pgrp(p) != pgrp)
1018 change_pid(p, PIDTYPE_PGID, pgrp); 1019 change_pid(p, PIDTYPE_PGID, pgrp);
1019 set_task_pgrp(p, pid_nr(pgrp));
1020 }
1021 1020
1022 err = 0; 1021 err = 0;
1023out: 1022out: