Current execution of external process on Windows might lead to following issues, causing process deadlock:
1/ Process stdin is not closed if no longer needed
2/ Process stdout and stderr never reach EOF
This behavior is observed when a .bat file file is executed on Windows. This behavior is caused by missing file descriptors to underlying process spawned by bat file.
Implementation note: There are two ways how to resolve the issue.
- read output stream and consider them finished if specific message is encountered
- unwrap bat execution and execute directly underlying command