diff --git a/[refs] b/[refs] index f74b8dc866ab..8a8246bda11b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 83beaf3c6c75b36b7c9be7f555c8cf7797842cc5 +refs/heads/master: 7d8da0962eaee30b4a380ded177349bfbdd6ac46 diff --git a/trunk/kernel/exit.c b/trunk/kernel/exit.c index 0da2921b1e7f..d3ad54677f9c 100644 --- a/trunk/kernel/exit.c +++ b/trunk/kernel/exit.c @@ -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); } }