Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64628
b: refs/heads/master
c: b07e35f
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Aug 31, 2007
1 parent d6f0f18 commit 64e2a61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d540fb71552b9f2c542bea967200c48be2d8ef6
refs/heads/master: b07e35f94a7b6a059f889b904529ee907dc0634d
3 changes: 1 addition & 2 deletions trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,6 @@ asmlinkage long sys_times(struct tms __user * tbuf)
* Auch. Had to add the 'did_exec' flag to conform completely to POSIX.
* LBT 04.03.94
*/

asmlinkage long sys_setpgid(pid_t pid, pid_t pgid)
{
struct task_struct *p;
Expand Down Expand Up @@ -1470,7 +1469,7 @@ asmlinkage long sys_setpgid(pid_t pid, pid_t pgid)
if (!thread_group_leader(p))
goto out;

if (p->real_parent == group_leader) {
if (p->real_parent->tgid == group_leader->tgid) {
err = -EPERM;
if (task_session(p) != task_session(group_leader))
goto out;
Expand Down

0 comments on commit 64e2a61

Please sign in to comment.