RFR: 8366736: Closed System.out causes child process to hang on Windows [v5]

Ioi Lam iklam at openjdk.org
Mon Jan 26 21:56:56 UTC 2026


On Mon, 26 Jan 2026 21:15:55 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fixed typo
>
> src/java.base/share/classes/java/lang/ProcessBuilder.java line 936:
> 
>> 934:      * If {#code System.out} and/or {#code System.err} have been
>> 935:      * closed in the current process, the corresponding output
>> 936:      * in the subprocess will be discarded.
> 
> Suggestion:
> 
>      * When the process is {@link #start started}, 
>      * if {#code System.out} and/or {#code System.err} have been
>      * closed in the current process, the corresponding output
>      * in the subprocess will be discarded.
> 
> Qualified to apply at the time the process is started, not when ProcessBuilder.inheritIO is called.

Thank Roger. I updated the text as you suggested and create the CSR: [JDK-8376413](https://bugs.openjdk.org/browse/JDK-8376413)

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29198#discussion_r2729403602


More information about the core-libs-dev mailing list