From 0ab2c0e83c5acccc25c5a4fef8ebce4ec18226d4 Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Mon, 26 Jun 2006 00:26:04 -0700 Subject: [PATCH] --- yaml --- r: 30262 b: refs/heads/master c: 2ceb8693ef63ae3d154ce1a05d275f2bb20a5e4c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/exec.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 22546078ce69..6d3426e4a6e6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 42c3e03ef6b298813557cdb997bd6db619cd65a2 +refs/heads/master: 2ceb8693ef63ae3d154ce1a05d275f2bb20a5e4c diff --git a/trunk/fs/exec.c b/trunk/fs/exec.c index 8c5196087f31..fffea1eef8dc 100644 --- a/trunk/fs/exec.c +++ b/trunk/fs/exec.c @@ -707,7 +707,7 @@ static int de_thread(struct task_struct *tsk) attach_pid(current, PIDTYPE_PID, current->pid); attach_pid(current, PIDTYPE_PGID, current->signal->pgrp); attach_pid(current, PIDTYPE_SID, current->signal->session); - list_add_tail_rcu(¤t->tasks, &init_task.tasks); + list_replace_rcu(&leader->tasks, ¤t->tasks); current->group_leader = current; leader->group_leader = current; @@ -715,7 +715,6 @@ static int de_thread(struct task_struct *tsk) /* Reduce leader to a thread */ detach_pid(leader, PIDTYPE_PGID); detach_pid(leader, PIDTYPE_SID); - list_del_init(&leader->tasks); current->exit_signal = SIGCHLD;