Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167723
b: refs/heads/master
c: 0d0df59
h: refs/heads/master
i:
  167721: 59b94bf
  167719: a2c0bd1
v: v3
  • Loading branch information
Christian Borntraeger authored and Linus Torvalds committed Oct 29, 2009
1 parent 18419ea commit 30bb1bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: 370c28def65b3a5765192753a164403619b41d01
refs/heads/master: 0d0df599f1f11f12d589318bacb59a50fb5c0310
4 changes: 1 addition & 3 deletions trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,8 @@ void __set_special_pids(struct pid *pid)
{
struct task_struct *curr = current->group_leader;

if (task_session(curr) != pid) {
if (task_session(curr) != pid)
change_pid(curr, PIDTYPE_SID, pid);
proc_sid_connector(curr);
}

if (task_pgrp(curr) != pid)
change_pid(curr, PIDTYPE_PGID, pid);
Expand Down
2 changes: 2 additions & 0 deletions trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,8 @@ SYSCALL_DEFINE0(setsid)
err = session;
out:
write_unlock_irq(&tasklist_lock);
if (err > 0)
proc_sid_connector(group_leader);
return err;
}

Expand Down

0 comments on commit 30bb1bf

Please sign in to comment.