Brian Stansberry wrote:
A key thing the PM needs to do is handle the last sentence in this bit from the java.lang.Process class javadoc:
"The created subprocess does not have its own terminal or console. All its standard io (i.e. stdin, stdout, stderr) operations will be redirected to the parent process through three streams (getOutputStream()
, getInputStream()
, getErrorStream()
). The parent process uses these streams to feed input to and get output from the subprocess. Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock."
Thanks, that is kind of what I was worried about regarding stdout/-err. I should have read the javadoc!