patch-2.1.101 linux/kernel/exit.c

Next file: linux/kernel/kmod.c
Previous file: linux/kernel/capability.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/kernel/exit.c linux/kernel/exit.c
@@ -20,7 +20,9 @@
 #include <linux/smp_lock.h>
 #include <linux/module.h>
 #include <linux/slab.h>
+#ifdef CONFIG_BSD_PROCESS_ACCT
 #include <linux/acct.h>
+#endif
 
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
@@ -346,7 +348,9 @@
 		panic("Attempted to kill the idle task!");
 fake_volatile:
 	current->flags |= PF_EXITING;
+#ifdef CONFIG_BSD_PROCESS_ACCT
 	acct_process(code);
+#endif
 	del_timer(&current->real_timer);
 	sem_exit();
 	__exit_mm(current);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov