-
Notifications
You must be signed in to change notification settings - Fork 22
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
krun-server should outlive first command #33
Comments
Something we can do, in krun-server, is keep track of the children and, if there's one that's still alive when the main command exits, inform the user and keep waiting until Ctrl+C is hit, or there are no more children running. This behavior would also work well with binfmt integration. First command run, even from a Desktop link, will start up the VM, which will be kept alive until the last command exits. WDYT? |
Sounds reasonable. I'll send a PR. |
Did some digging:
https://users.rust-lang.org/t/how-to-properly-close-a-tcplistener-in-multi-thread-server/87376/17
We also don't want to use |
Okay, I think we really need to rethink our architecture here. This is not going to work in any user friendly way. Waiting for children to exit still means new It seems to me the only possible solution without involving a long-lived krun server running in the background would be: delay the shutdown if a new incoming connection is I'll continue thinking and working on this. |
(Continuing from https://github.com/slp/krun/pull/23#discussion_r1624008269)
With some real-world testing, it's entirely jarring behaviour from a user perspective.
Steps for reproduction:
krun FEXBash
krun FEXInterpreter steam
exit
fromFEXBash
Expected result:
Steam should continue running.
Actual / observed behaviour:
Steam is killed abruptly.
The text was updated successfully, but these errors were encountered: