RFR: 8307990: jspawnhelper must close its writing side of a pipe before reading from it
Thomas Stuefe
stuefe at openjdk.org
Tue May 16 12:35:46 UTC 2023
On Tue, 16 May 2023 12:07:10 GMT, David Holmes <dholmes at openjdk.org> wrote:
> > > I wonder if @Martin-Buchholz is able to look at this one?
> > > My concern with changes like this is that they fix an issue but then have unexpected side-effects themselves.
> >
> >
> > Are there any specific concerns you have?
>
> There seems to be more going on here than just closing the write side of the pipe. We will now error out if any of the readFully's do a short read, rather than just when reporting an error - which on the surface seems like a good thing, but what if harmless short-reads can actually happen in some contexts?
I agree, it would be clearer to just to the close.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13956#issuecomment-1549575144
More information about the core-libs-dev
mailing list