freebsd-src/sbin/reboot
Dag-Erling Smørgrav 7f39d05b67
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
reboot: Fix halt -p behavior
The RB_HALT bit is always set when invoked as `halt`, so to maintain a
distinction between `halt` and `halt -p`, we must check the RB_POWEROFF
bit first.

PR:		291814
Fixes:		4453ec5b87 ("reboot: Default to a clean shutdown")
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D54320
2025-12-20 00:26:37 +01:00
..
boot_i386.8
Makefile
Makefile.depend
nextboot.8 nextboot: Reimplement missing -a option 2025-12-08 11:30:17 +01:00
reboot.8 reboot: Default to a clean shutdown 2025-12-10 15:45:57 +01:00
reboot.c reboot: Fix halt -p behavior 2025-12-20 00:26:37 +01:00