generated from nhcarrigan/template
dd95750a8d
When a non-existent directory is given on Windows/WSL, the wsl process spawns but bash exits immediately after the cd fails. The stale child handle was never cleared, causing the next connection attempt to fail with "Process already running". - Clean up stale process handles in start() via try_wait() - Pre-validate the working directory via wsl test -d before spawning