diff options
| author | Andrew Gallatin <gallatin@FreeBSD.org> | 2002-07-17 02:23:44 +0000 |
|---|---|---|
| committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2002-07-17 02:23:44 +0000 |
| commit | fe79953325321e0e7753af60b2baf85413702ef0 (patch) | |
| tree | 5924547463c69dff00bd745cf367d4a708e9a16e /sys/kern/kern_shutdown.c | |
| parent | fb36a3d8472e3b7c446b5501635ec34eb1ebaa00 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_shutdown.c')
| -rw-r--r-- | sys/kern/kern_shutdown.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 209c22e5495e..13a9c7aa26a5 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -433,6 +433,7 @@ static u_int panic_cpu = NOCPU; void panic(const char *fmt, ...) { + struct thread *td = curthread; int bootopt; va_list ap; static char buf[256]; @@ -486,6 +487,7 @@ panic(const char *fmt, ...) } #endif #endif + td->td_flags |= TDF_INPANIC; if (!sync_on_panic) bootopt |= RB_NOSYNC; boot(bootopt); |
