Page MenuHomeFreeBSD

reboot: Fix halt -p behavior
ClosedPublic

Authored by des on Dec 19 2025, 7:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 3, 7:09 AM
Unknown Object (File)
Mon, Aug 3, 5:53 AM
Unknown Object (File)
Sun, Aug 2, 1:49 AM
Unknown Object (File)
Mon, Jul 27, 8:58 AM
Unknown Object (File)
Mon, Jul 27, 2:39 AM
Unknown Object (File)
Sun, Jul 26, 4:41 PM
Unknown Object (File)
Sun, Jul 26, 4:10 PM
Unknown Object (File)
Sat, Jul 25, 6:34 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