mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
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:
parent
75aa1914d5
commit
e3adb68519
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222865
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user