patch-2.3.27 linux/kernel/exit.c

Next file: linux/kernel/fork.c
Previous file: linux/ipc/util.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.26/linux/kernel/exit.c linux/kernel/exit.c
@@ -402,6 +402,7 @@
 #ifdef CONFIG_BSD_PROCESS_ACCT
 	acct_process(code);
 #endif
+	task_lock(tsk);
 	sem_exit();
 	__exit_mm(tsk);
 #if CONFIG_AP1000
@@ -414,6 +415,7 @@
 	tsk->state = TASK_ZOMBIE;
 	tsk->exit_code = code;
 	exit_notify();
+	task_unlock(tsk);
 #ifdef DEBUG_PROC_TREE
 	audit_ptree();
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)