Thread hangs reading from process output streams, even though process has terminated. (possible JDK bug?)
bruno.do.medeiros at gmail.com
Thu May 29 13:41:16 UTC 2014
On Thu, May 29, 2014 at 2:32 PM, roger riggs <roger.riggs at oracle.com> wrote:
> Hi Bruno,
> Create an issue:
> JDK-8044321 <https://bugs.openjdk.java.net/browse/JDK-8044321> EOF does
> not occur reading input from spawned cmd.exe process
> I was able to reproduce it on java 7 but not java 8.
> The implementation of Process does not mix handling of one Process
> instance with another
> so it may be an interaction specific to cmd.exe.
I don't think so: This bug originally occurred with processes other than
cmd.exe (the two processes where not even from the same executable, BTW). I
only changed it to cmd.exe for the sake of having a simpler example that
anyone could try, since cmd.exe is included with Windows.
More information about the core-libs-dev