RFR: 8307990: jspawnhelper must close its writing side of a pipe before reading from it [v7]
Volker Simonis
simonis at openjdk.org
Tue May 30 13:28:05 UTC 2023
On Fri, 26 May 2023 17:23:01 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Still think it would be cleaner and simpler to set the FD in the parent to CLOEXEC, before doing posix_spawn, and at the same time set the childStuff variable to -1 to prevent the child from attempting to re-close it. Reconsider?
As you say yourself, this code is complex and I therefor hesitate to do any refactoring of the code just to make it "cleaner any simpler" (at least not now in this PR).
@tstuefe, do you still plan to look at the latest version? Otherwise I want to push this in the next day or two.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13956#issuecomment-1568432978
More information about the core-libs-dev
mailing list