patch-2.3.43 linux/kernel/panic.c

Next file: linux/kernel/pm.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/kernel/panic.c linux/kernel/panic.c
@@ -41,10 +41,10 @@
 	vsprintf(buf, fmt, args);
 	va_end(args);
 	printk(KERN_EMERG "Kernel panic: %s\n",buf);
-	if (current == init_tasks[0])
-		printk(KERN_EMERG "In swapper task - not syncing\n");
-	else if (in_interrupt())
+	if (in_interrupt())
 		printk(KERN_EMERG "In interrupt handler - not syncing\n");
+	else if (!current->pid)
+		printk(KERN_EMERG "In idle task - not syncing\n");
 	else
 		sys_sync();
 

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