> I'd like to know what is a safe way to deal with an external process
> which we're *sure* won't be generating any output on stdout/stderr
> nor expecting any output on stdin.
>
> Do I still need to read the InputStream(s)?
No.
> Would there still be a risk of being blocked
> during the read?
Since the block is caused by a buffer filling, there is no risk if
nothing is ever written.
Just don't forget that you still need to close all three streams (in,
out, err) at some point. There is a file descriptor associated with
each of them, and if you fail to close them you will run out
eventually.
/gordon

Signature
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
trstag75@yahoo.fr - 21 Feb 2007 20:56 GMT
> > I'd like to know what is a safe way to deal with an external process
> > which we're *sure* won't be generating any output on stdout/stderr
[quoted text clipped - 14 lines]
> each of them, and if you fail to close them you will run out
> eventually.
Thanks a lot for the infos. I'm working on it at the moment.
Tristan