aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_shutdown.c
diff options
context:
space:
mode:
authorStephen J. Kiernan <stevek@FreeBSD.org>2024-03-27 22:55:21 +0000
committerStephen J. Kiernan <stevek@FreeBSD.org>2024-03-28 18:11:16 +0000
commit2aee804c9ef02b2ffa3e35037ea45f43e1709d2f (patch)
tree303ba5c81819c6d3514b34918414fdb67d652a1f /sys/kern/kern_shutdown.c
parentfe429e6794d322636e7c1e520d50ec0cb711dd14 (diff)
downloadsrc-2aee804c9ef02b2ffa3e35037ea45f43e1709d2f.tar.gz
src-2aee804c9ef02b2ffa3e35037ea45f43e1709d2f.zip
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r--sys/kern/kern_shutdown.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index f49e315a503d..b0a3c3fa9e91 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -229,6 +229,7 @@ bool scheduler_stopped __read_frequently;
int dumping __read_mostly; /* system is dumping */
int rebooting __read_mostly; /* system is rebooting */
+bool dumped_core __read_mostly; /* system successfully dumped core */
/*
* Used to serialize between sysctl kern.shutdown.dumpdevname and list
* modifications via ioctl.
@@ -415,8 +416,10 @@ doadump(boolean_t textdump)
TAILQ_FOREACH(di, &dumper_configs, di_next) {
error = dumpsys(di);
- if (error == 0)
+ if (error == 0) {
+ dumped_core = true;
break;
+ }
}
}