On Wed, 12 Oct 2022 16:30:07 GMT, Roger Riggs <rri...@openjdk.org> wrote:

> Process.waitFor() throws IllegalThreadStateException when a process returns 
> an exit code of 259.
> As described in the bug report, `waitFor()` should not be sensitive to the 
> exit value.
> Previously, it erroneously threw IllegalStateException.
> Added a test to verify.

The reporter of the issue provided additional details that it was their own 
application/program which was returning that exit value:

> I encountered it while prototyping an idea involving a Java application 
> spawning a process running a C++ application that returned an exit value 
> indicating the number of items it processed.

So this appears like the case where this change would help. I haven't found any 
conclusive/official Windows documentation which forbids user applications from 
returning this exit value (which represents `STILL_ACTIVE`).

-------------

PR: https://git.openjdk.org/jdk/pull/10680

Reply via email to