mirror of
https://github.com/corda/corda.git
synced 2025-03-11 15:04:14 +00:00
The first bug affected POSIX systems: if the app never called Process.waitFor, we'd never call waitpid on the child and thus leak a zombie process. This patch ensures that we always call waitpid by spawning a thread to handle it. The second bug affected Windows systems: we weren't closing the child's ends of the stdin, stdout, and stderr pipes after process creation, which lead to us blocking forever while reading from the child's stdout or stderr.