Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143597128
D37981.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
754 B
Referenced Files
None
Subscribers
None
D37981.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
@@ -270,8 +270,6 @@
SHUTDOWN_PRI_LAST + 100);
EVENTHANDLER_REGISTER(shutdown_final, shutdown_panic, NULL,
SHUTDOWN_PRI_LAST + 100);
- EVENTHANDLER_REGISTER(shutdown_final, shutdown_reset, NULL,
- SHUTDOWN_PRI_LAST + 200);
}
SYSINIT(shutdown_conf, SI_SUB_INTRINSIC, SI_ORDER_ANY, shutdown_conf, NULL);
@@ -548,6 +546,12 @@
EVENTHANDLER_INVOKE(shutdown_final, howto);
+ /*
+ * Call this directly so that reset is attempted even if shutdown
+ * handlers are not yet registered.
+ */
+ shutdown_reset(NULL, howto);
+
for(;;) ; /* safety against shutdown_reset not working */
/* NOTREACHED */
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 12:42 AM (14 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28108219
Default Alt Text
D37981.diff (754 B)
Attached To
Mode
D37981: ddb: have 'reset' command use normal reboot path
Attached
Detach File
Event Timeline
Log In to Comment