| To: | kdb@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] no kdb on panic |
| From: | Olaf Hering <olh@xxxxxxx> |
| Date: | Tue, 26 Oct 2004 19:24:25 +0200 |
| Sender: | kdb-bounce@xxxxxxxxxxx |
| User-agent: | Mutt und vi sind doch schneller als Notes (und GroupWise) |
Why is kdb call anyway if the system panics?
If its off, it has to be off.
diff -purN linux-2.6.5/kdb/kdbmain.c linux-2.6.5.kdb/kdb/kdbmain.c
--- linux-2.6.5/kdb/kdbmain.c 2004-10-26 11:35:07.000000000 +0200
+++ linux-2.6.5.kdb/kdb/kdbmain.c 2004-10-26 19:09:12.703683875 +0200
@@ -3810,6 +3810,8 @@ kdb_cmd_init(void)
static int
kdb_panic(struct notifier_block *self, unsigned long command, void *ptr)
{
+ if (!kdb_on)
+ return 1;
KDB_FLAG_SET(CATASTROPHIC); /* kernel state is dubious now */
KDB_ENTER();
return(0);
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÃRNBERG
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Anybody know whether or not kdb supports x86_64(for instance, ia32e) platform now?Thanx., Chen, Yukun |
|---|---|
| Next by Date: | Re: [PATCH] no kdb on panic, Keith Owens |
| Previous by Thread: | Anybody know whether or not kdb supports x86_64(for instance, ia32e) platform now?Thanx., Chen, Yukun |
| Next by Thread: | Re: [PATCH] no kdb on panic, Keith Owens |
| Indexes: | [Date] [Thread] [Top] [All Lists] |