On Mon, 24 May 2021 01:21:09 GMT, Roger Riggs <rri...@openjdk.org> wrote:
> On the question of process termination behavior, I'm not sure what can be > said that could be specification. > The implementations vary between Mac, Linux, and Windows; with the common > thread > to avoid losing process output. But this may have to be included in the > unspecified implementation behavior > or just an API note. Suggestions? I think the javadoc could set expectations that the behavior when the process has terminated, and streams have not been redirected, is unspecified. Reading from the process output/error streams may read some or no bytes/characters. ------------- PR: https://git.openjdk.java.net/jdk/pull/4134