Page MenuHomeFreeBSD

reboot: Fix halt -p behavior
ClosedPublic

Authored by des on Dec 19 2025, 7:55 PM.
Tags
None
Referenced Files
F149051654: D54320.diff
Sun, Mar 22, 12:25 AM
Unknown Object (File)
Sat, Feb 28, 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
Unknown Object (File)
Jan 16 2026, 4:00 PM
Unknown Object (File)
Jan 14 2026, 11:59 AM
Unknown Object (File)
Jan 8 2026, 9:11 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