8294899: Process.waitFor() throws IllegalThreadStateException when a process on Windows returns an exit code of 259

Reviewed-by: alanb, jpai
This commit is contained in:
Roger Riggs 2022-11-14 14:17:46 +00:00
parent 3f401b3091
commit 9c39932672
2 changed files with 46 additions and 1 deletions

View file

@ -572,7 +572,7 @@ final class ProcessImpl extends Process {
}
if (Thread.interrupted())
throw new InterruptedException();
return exitValue();
return getExitCodeProcess(handle);
}
private static native void waitForInterruptibly(long handle);