Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95252
b: refs/heads/master
c: 7d8da09
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Apr 30, 2008
1 parent 42a91b2 commit ceea7b4
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 83beaf3c6c75b36b7c9be7f555c8cf7797842cc5
refs/heads/master: 7d8da0962eaee30b4a380ded177349bfbdd6ac46
6 changes: 2 additions & 4 deletions trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,11 @@ void __set_special_pids(struct pid *pid)
pid_t nr = pid_nr(pid);

if (task_session(curr) != pid) {
detach_pid(curr, PIDTYPE_SID);
attach_pid(curr, PIDTYPE_SID, pid);
change_pid(curr, PIDTYPE_SID, pid);
set_task_session(curr, nr);
}
if (task_pgrp(curr) != pid) {
detach_pid(curr, PIDTYPE_PGID);
attach_pid(curr, PIDTYPE_PGID, pid);
change_pid(curr, PIDTYPE_PGID, pid);
set_task_pgrp(curr, nr);
}
}
Expand Down

0 comments on commit ceea7b4

Please sign in to comment.