Page MenuHomeFreeBSD

reboot: Fix halt -p behavior
ClosedPublic

Authored by des on Dec 19 2025, 7:55 PM.
Tags
None
Referenced Files
F162633706: D54320.diff
Wed, Jul 15, 6:59 AM
F162633705: D54320.diff
Wed, Jul 15, 6:59 AM
Unknown Object (File)
Wed, Jul 8, 12:47 AM
Unknown Object (File)
Tue, Jun 30, 3:55 AM
Unknown Object (File)
Sat, Jun 27, 3:38 PM
Unknown Object (File)
Tue, Jun 16, 10:55 AM
Unknown Object (File)
Jun 5 2026, 6:18 AM
Unknown Object (File)
Jun 4 2026, 3:54 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