Page MenuHomeFreeBSD

reboot: Fix halt -p behavior
ClosedPublic

Authored by des on Fri, Dec 19, 7:55 PM.
Tags
None
Referenced Files
F140608388: D54320.diff
Thu, Dec 25, 10:01 PM
Unknown Object (File)
Wed, Dec 24, 11:38 PM
Unknown Object (File)
Tue, Dec 23, 5:06 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