Thread hangs reading from process output streams, even though process has terminated. (possible JDK bug?)

Bruno Medeiros at
Thu May 29 13:41:16 UTC 2014

On Thu, May 29, 2014 at 2:32 PM, roger riggs <roger.riggs at> wrote:

> Hi Bruno,
> Create an issue:
> 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.
Cool, thanks.

> The implementation of Process does not mix handling of one Process
> instance with another
> so it may be an interaction specific to cmd.exe.
> Roger
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.

Bruno Medeiros

More information about the core-libs-dev mailing list