Repository navigation
Conversation
run_host_wsl blocks on command.output() with no deadline. When WSL is not installed the stub wsl.exe in System32 hangs for roughly 60 seconds before returning REGDB_E_CLASSNOTREG, freezing the entire app during bootstrap. Replace the blocking call with spawn + poll loop capped at 5 seconds. If wsl.exe does not exit in time it is killed and an error is returned, so list_distributions gracefully fails and the shell list falls back to non-WSL entries. Fixes athasdev#788
RawJat
force-pushed
the
fix/wsl-startup-timeout
branch
from
November 8, 2026 20:03
4c9adcb to
ac4cea3
Compare
mehmetozguldev
approved these changes
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
run_host_wslcallscommand.output()with no deadline; when WSL is not installed the System32wsl.exestub hangs for ~60s before returningREGDB_E_CLASSNOTREG, freezing the entire app during bootstrapspawn+ poll loop capped at 5 seconds; ifwsl.exedoes not exit in time it is killed and an error is returned solist_distributionsgracefully failsTest plan
cargo test -p athas-wslpassesFixes #788