RFR: 8191441: (Process) add Readers and Writer access to java.lang.Process streams [v3]
Alan Bateman
alanb at openjdk.java.net
Tue May 25 07:19:04 UTC 2021
On Mon, 24 May 2021 01:21:09 GMT, Roger Riggs <rriggs at 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
More information about the core-libs-dev
mailing list