Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84664
b: refs/heads/master
c: 6806aac
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Feb 8, 2008
1 parent b16a391 commit 5dea8d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: d12619b5ff5664623524aef796514d1946ea3b4a
refs/heads/master: 6806aac6d282d58b97763f5e17e2787e62c3b440
5 changes: 1 addition & 4 deletions trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1056,11 +1056,8 @@ asmlinkage long sys_setsid(void)

/* Fail if a process group id already exists that equals the
* proposed session id.
*
* Don't check if session == 1, clone(CLONE_NEWPID) creates
* this group/session beforehand.
*/
if (session != 1 && pid_task(sid, PIDTYPE_PGID))
if (pid_task(sid, PIDTYPE_PGID))
goto out;

group_leader->signal->leader = 1;
Expand Down

0 comments on commit 5dea8d0

Please sign in to comment.