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)
Thu, Sep 24, 7:14 AM
Unknown Object (File)
Sun, Sep 20, 4:29 PM
Unknown Object (File)
Sun, Sep 20, 2:46 AM
Unknown Object (File)
Fri, Sep 18, 8:06 AM
Unknown Object (File)
Wed, Sep 16, 7:10 AM
Unknown Object (File)
Thu, Sep 10, 10:38 PM
Unknown Object (File)
Thu, Sep 10, 2:28 PM
Unknown Object (File)
Wed, Sep 9, 3:31 AM
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