]> Git Repo - linux.git/blobdiff - kernel/sys.c
futex: add FUTEX_HAS_TIMEOUT flag to restart.futex.flags
[linux.git] / kernel / sys.c
index 37f458e6882adbd1f2b0697e5077c92e4252e03f..51dbb55604e847991023697267d26c9216497ce7 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/seccomp.h>
 #include <linux/cpu.h>
 #include <linux/ptrace.h>
+#include <linux/fs_struct.h>
 
 #include <linux/compat.h>
 #include <linux/syscalls.h>
@@ -1013,10 +1014,8 @@ SYSCALL_DEFINE2(setpgid, pid_t, pid, pid_t, pgid)
        if (err)
                goto out;
 
-       if (task_pgrp(p) != pgrp) {
+       if (task_pgrp(p) != pgrp)
                change_pid(p, PIDTYPE_PGID, pgrp);
-               set_task_pgrp(p, pid_nr(pgrp));
-       }
 
        err = 0;
 out:
This page took 0.03122 seconds and 4 git commands to generate.