wsl.exe Windows command never exits when run using child_process.spawn #18431
Labels
child_process
Issues and PRs related to the child_process subsystem.
windows
Issues and PRs related to the Windows platform.
Running a command in Ubuntu on Windows using the "wsl" command works fine except the exit and / or close events never occur, and the script remains running until forcibly closed. I've specifically tested using child_process.spawn, but I believe it's the same with exec and execFile.
Example code follows (works fine if the wsl command is substituted with the "dir" windows command - and of course the first argument removed):
Thanks - Lawrence
The text was updated successfully, but these errors were encountered: