Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210363
b: refs/heads/master
c: 950eaac
h: refs/heads/master
i:
  210361: 0c3ddbe
  210359: 4797887
v: v3
  • Loading branch information
Paul E. McKenney committed Sep 1, 2010
1 parent 87d6c87 commit e143244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cb6cbeaa9d6573c674842b9471c0467967aae99
refs/heads/master: 950eaaca681c44aab87a46225c9e44f902c080aa
2 changes: 2 additions & 0 deletions trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ SYSCALL_DEFINE2(setpgid, pid_t, pid, pid_t, pgid)
pgid = pid;
if (pgid < 0)
return -EINVAL;
rcu_read_lock();

/* From this point forward we keep holding onto the tasklist lock
* so that our parent does not change from under us. -DaveM
Expand Down Expand Up @@ -984,6 +985,7 @@ SYSCALL_DEFINE2(setpgid, pid_t, pid, pid_t, pgid)
out:
/* All paths lead to here, thus we are safe. -DaveM */
write_unlock_irq(&tasklist_lock);
rcu_read_unlock();
return err;
}

Expand Down

0 comments on commit e143244

Please sign in to comment.