This is a bug report with fix.<br><br>My code in UNIXProcess.java.linux introduced a hang if the subprocess terminates, but it has remaining descendants that keep the pipe file descriptors open.<br><br>Here's a fix:<br>
<br>
<a href="http://cr.openjdk.java.net/%7Emartin/webrevs/openjdk7/ProcessHang/" target="_blank">http://cr.openjdk.java.net/~martin/webrevs/openjdk7/ProcessHang/</a><br><br>Please review.<br><br>Alan, there are remaining (pre-existing) thorny issues with proper handling of process streams and asynchronous close, that we might want to discuss someday.<br>
<font color="#888888"><br><br><br>Martin</font>