Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159276465
D32089.id95593.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
683 B
Referenced Files
None
Subscribers
None
D32089.id95593.diff
View Options
Index: sys/kern/kern_shutdown.c
===================================================================
--- sys/kern/kern_shutdown.c
+++ sys/kern/kern_shutdown.c
@@ -427,6 +427,7 @@
kern_reboot(int howto)
{
static int once = 0;
+ static int handler_once = 0;
/*
* Normal paths here don't hold Giant, but we can wind up here
@@ -480,7 +481,10 @@
* Ok, now do things that assume all filesystem activity has
* been completed.
*/
- EVENTHANDLER_INVOKE(shutdown_post_sync, howto);
+ if (handler_once == 0) {
+ handler_once = 1;
+ EVENTHANDLER_INVOKE(shutdown_post_sync, howto);
+ }
if ((howto & (RB_HALT|RB_DUMP)) == RB_DUMP && !cold && !dumping)
doadump(TRUE);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 13, 6:24 AM (56 m, 39 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33921366
Default Alt Text
D32089.id95593.diff (683 B)
Attached To
Mode
D32089: kern_reboot: Only call the shutdown handler once
Attached
Detach File
Event Timeline
Log In to Comment