elharo opened a new pull request, #412: URL: https://github.com/apache/maven-shared-utils/pull/412
After `Process.waitFor()` returns, close the process's stdout, stderr, and stdin streams. This works around [JDK-4311711](https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4311711) where `Process.getInputStream().read()` can hang indefinitely even after the process has terminated. Without this fix, `CommandLineUtils.executeCommandLineAsCallable()` can hang forever on some JVMs because the `StreamPumper` threads are blocked in `BufferedReader.readLine()` on the process's output streams, which never reach EOF. Fixes https://github.com/apache/maven-shared-utils/issues/270 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
