Page MenuHomeFreeBSD

reboot: Fix halt -p behavior
ClosedPublic

Authored by des on Dec 19 2025, 7:55 PM.
Tags
None
Referenced Files
F152750790: D54320.id.diff
Thu, Apr 16, 9:30 PM
Unknown Object (File)
Tue, Apr 7, 3:12 PM
Unknown Object (File)
Tue, Apr 7, 2:20 PM
Unknown Object (File)
Sun, Mar 22, 12:25 AM
Unknown Object (File)
Feb 28 2026, 1:02 PM
Unknown Object (File)
Feb 19 2026, 11:56 AM
Unknown Object (File)
Feb 19 2026, 9:45 AM
Unknown Object (File)
Feb 17 2026, 12:39 PM
Subscribers

Details

Summary

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: 4453ec5b8716 ("reboot: Default to a clean shutdown")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable