patch-2.1.130 linux/kernel/exit.c
Next file: linux/kernel/fork.c
Previous file: linux/kernel/exec_domain.c
Back to the patch index
Back to the overall index
-  Lines: 28
 -  Date:
Tue Nov 24 09:57:10 1998
 -  Orig file: 
v2.1.129/linux/kernel/exit.c
 -  Orig date: 
Thu Nov 12 16:21:24 1998
 
diff -u --recursive --new-file v2.1.129/linux/kernel/exit.c linux/kernel/exit.c
@@ -5,17 +5,10 @@
  */
 
 #include <linux/config.h>
-#include <linux/wait.h>
-#include <linux/errno.h>
-#include <linux/sched.h>
-#include <linux/resource.h>
-#include <linux/mm.h>
 #include <linux/malloc.h>
-#include <linux/slab.h>
 #include <linux/interrupt.h>
 #include <linux/smp_lock.h>
 #include <linux/module.h>
-#include <linux/slab.h>
 #ifdef CONFIG_BSD_PROCESS_ACCT
 #include <linux/acct.h>
 #endif
@@ -358,7 +351,9 @@
 	if (!tsk->pid)
 		panic("Attempted to kill the idle task!");
 	tsk->flags |= PF_EXITING;
+	start_bh_atomic();
 	del_timer(&tsk->real_timer);
+	end_bh_atomic();
 
 	lock_kernel();
 fake_volatile:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov