-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
finit hangs during system shutting down #397
Comments
Which commands exactly did you use to initiate the shutdown/reboot? |
I was using reboot which symlinks to initctl. I was thinking it was related to the fact that ttinit sets attributes for STDERR_FILENO while the scanf requires raw (?) input from stdin. However, simply applying the same cflag/lflag on STDIN_FILENO was not sufficient to resolve the hang in every situation - if nobody logged in on the console it still hangs. |
Yeah this is not right. I'll have a look at it. The reboot command should bypass all terminal screen probing |
OK, I believe I've identified the root cause: Lines 54 to 64 in 5998342
At shutdown all subsystems are called to exit, so too the logging subsystem. Pretty sure this is the instance of I'll have a chat with a colleague, but we'll likely just drop those two lines. No point in probing screen at shutdown anymore. ([OK] progress is displayed differently these days.) |
I have verified it, it works on our system. |
Great, thanks! 😃👍 I'll push an official fix later today, which will be part of the next release. |
We observed a issue that finit hangs during system shutting down, when there is a serial debug console connected to the machine.
After some investigation, we found it hangs on this line: https://github.com/troglobit/finit/blob/master/src/util.c#L620
The text was updated successfully, but these errors were encountered: