aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index a80824f6108b..caceabf3f230 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -257,7 +257,7 @@ static inline void reparent_to_init(void)
257 257
258void __set_special_pids(pid_t session, pid_t pgrp) 258void __set_special_pids(pid_t session, pid_t pgrp)
259{ 259{
260 struct task_struct *curr = current; 260 struct task_struct *curr = current->group_leader;
261 261
262 if (curr->signal->session != session) { 262 if (curr->signal->session != session) {
263 detach_pid(curr, PIDTYPE_SID); 263 detach_pid(curr, PIDTYPE_SID);