Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153212832
D44542.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
926 B
Referenced Files
None
Subscribers
None
D44542.diff
View Options
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -229,6 +229,7 @@
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 @@
TAILQ_FOREACH(di, &dumper_configs, di_next) {
error = dumpsys(di);
- if (error == 0)
+ if (error == 0) {
+ dumped_core = true;
break;
+ }
}
}
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -358,6 +358,7 @@
};
extern int dumping; /* system is dumping */
+extern bool dumped_core; /* system successfully dumped kernel core */
/*
* Save registers for later extraction from a kernel dump.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 8:30 PM (4 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31862945
Default Alt Text
D44542.diff (926 B)
Attached To
Mode
D44542: kerneldump: Add flag to indicate kernel core was successfully dumped
Attached
Detach File
Event Timeline
Log In to Comment