Page MenuHomeFreeBSD

D23129.id66604.diff
No OneTemporary

D23129.id66604.diff

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

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)

Event Timeline