Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F158927212
D23129.id66604.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D23129.id66604.diff
View Options
Index: sbin/init/init.c
===================================================================
--- sbin/init/init.c
+++ sbin/init/init.c
@@ -1629,12 +1629,14 @@
current_state == clean_ttys || current_state == catatonia)
requested_transition = clean_ttys;
break;
- case SIGWINCH:
case SIGUSR2:
- howto = sig == SIGUSR2 ? RB_POWEROFF : RB_POWERCYCLE;
+ howto = RB_POWEROFF;
case SIGUSR1:
howto |= RB_HALT;
+ case SIGWINCH:
case SIGINT:
+ if (sig == SIGWINCH)
+ howto |= RB_POWERCYCLE;
Reboot = TRUE;
case SIGTERM:
if (current_state == read_ttys || current_state == multi_user ||
Index: sbin/shutdown/shutdown.8
===================================================================
--- sbin/shutdown/shutdown.8
+++ sbin/shutdown/shutdown.8
@@ -63,7 +63,7 @@
The system is power cycled (power turned off and then back on)
at the specified time.
If the hardware doesn't support power cycle, the system will be
-halted.
+reboot.
At the present time, only systems with BMC supported by the
.Xr ipmi 4
driver that implement this functionality support this flag.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 8, 8:43 PM (13 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33818657
Default Alt Text
D23129.id66604.diff (1 KB)
Attached To
Mode
D23129: Small tweak to the default behavior of shutdown -c
Attached
Detach File
Event Timeline
Log In to Comment