diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:02:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:02:57 -0400 |
commit | f541ae326fa120fa5c57433e4d9a133df212ce41 (patch) | |
tree | bdbd94ec72cfc601118051cb35e8617d55510177 /kernel/sys.c | |
parent | e255357764f92afcafafbd4879b222b8c752065a (diff) | |
parent | 0221c81b1b8eb0cbb6b30a0ced52ead32d2b4e4c (diff) |
Merge branch 'linus' into perfcounters/core-v2
Merge reason: we have gathered quite a few conflicts, need to merge upstream
Conflicts:
arch/powerpc/kernel/Makefile
arch/x86/ia32/ia32entry.S
arch/x86/include/asm/hardirq.h
arch/x86/include/asm/unistd_32.h
arch/x86/include/asm/unistd_64.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/irq.c
arch/x86/kernel/syscall_table_32.S
arch/x86/mm/iomap_32.c
include/linux/sched.h
kernel/Makefile
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 5 |
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; |
1023 | out: | 1022 | out: |