[PATCH] don't touch current->tasks in de_thread()

From: Oleg Nesterov
Date: Mon Jan 30 2006 - 08:34:24 EST


switch_exec_pids() already added 'current' to init_task.tasks,
no need to re-add in de_thread().

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

--- RC-1/fs/exec.c~ 2006-01-19 18:13:06.000000000 +0300
+++ RC-1/fs/exec.c 2006-01-30 20:17:20.000000000 +0300
@@ -713,8 +713,6 @@ static int de_thread(struct task_struct
__ptrace_link(current, parent);
}

- list_del(&current->tasks);
- list_add_tail(&current->tasks, &init_task.tasks);
current->exit_signal = SIGCHLD;

BUG_ON(leader->exit_state != EXIT_ZOMBIE);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/