Skip to contentSkip to conversation

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

PATCH New Oleg Nesterov 1 participant 1 message Jan 30, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 don't touch current->tasks in de_thread()

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

fs/exec.c renamed from fs/exec.c~ +0 -2
@@ -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);