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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Oleg Nesterov <[email protected]>

--- 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux