In the current code, a double panic condition may lead to dumps

interleaving.
Signal dumping to happen only for the first panic which should be the
most important.

Sponsored by:	Sandvine Incorporated
Submitted by:	Nima Misaghian (nmisaghian AT sandvine DOT com)
MFC after:	2 weeks
This commit is contained in:
Attilio Rao 2011-06-08 19:28:59 +00:00
parent 75aa1914d5
commit e3adb68519

View File

@ -555,11 +555,12 @@ panic(const char *fmt, ...)
; /* nothing */
#endif
bootopt = RB_AUTOBOOT | RB_DUMP;
bootopt = RB_AUTOBOOT;
newpanic = 0;
if (panicstr)
bootopt |= RB_NOSYNC;
else {
bootopt |= RB_DUMP;
panicstr = fmt;
newpanic = 1;
}