Closed mlookaxw closed 4 years ago
If a long running external command is executed, sometimes a "java.lang.IllegalThreadStateException: process hasn't exited" exception is thrown.
When the exit code of the external command is checked, sometimes the process hasn't terminated yet.
The Process#waitFor() method has to be used instead of Process#exitValue()
If a long running external command is executed, sometimes a "java.lang.IllegalThreadStateException: process hasn't exited" exception is thrown.