diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -702,7 +702,7 @@ static int de_thread(struct task_struct *tsk) | |||
702 | */ | 702 | */ |
703 | detach_pid(tsk, PIDTYPE_PID); | 703 | detach_pid(tsk, PIDTYPE_PID); |
704 | tsk->pid = leader->pid; | 704 | tsk->pid = leader->pid; |
705 | attach_pid(tsk, PIDTYPE_PID, tsk->pid); | 705 | attach_pid(tsk, PIDTYPE_PID, find_pid(tsk->pid)); |
706 | transfer_pid(leader, tsk, PIDTYPE_PGID); | 706 | transfer_pid(leader, tsk, PIDTYPE_PGID); |
707 | transfer_pid(leader, tsk, PIDTYPE_SID); | 707 | transfer_pid(leader, tsk, PIDTYPE_SID); |
708 | list_replace_rcu(&leader->tasks, &tsk->tasks); | 708 | list_replace_rcu(&leader->tasks, &tsk->tasks); |