Red Hat Bugzilla – Bug 110011
"halt -fn" and "halt -f" do not halt the machine
Last modified: 2013-03-06 00:56:17 EST
Description: Running "halt -fn" or "halt -f" doesn't halt the machine
How reproducible: 100%
Steps to Reproduce: Run "halt -fn"
Actual results: Machine running; no processes affected.
Expected results: Halted machine.
Created attachment 95959 [details]
strace output of "halt -fn", dmesg, etc.
Attaching dmesg / strace output.
As some more info, this behavior is not specific to RHEL 2.1.
Apparently on a 'halt -fn', a SIGTSTP is sent to process 1, or 'init'.
Also a HALT flag is passed to the reboot syscall. That syscall doesn't
do anything in practice on the x86 architecture. Thus, any differences
in 'halt -fn' behavior would appear to be non-kernel related. My
thought on this is that halting 'init' is probably possible of
creating unpredictable system-wide consequences. The manpage for halt
isn't specific enough in the -f case, to suggest to me that this
behavior is inconsistent with the manpage. Thus, i would suggest
closing this as not a bug.
Any benefit to updating the manpage accordingly?