aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 1ba85c7fc6af..2255dc72deef 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -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);