node
node copied to clipboard
child_process: check for closed pipes after creating socket
After the socket is created, this PR now triggers an empty read to make sure we catch stdio events like closing the stdin file descriptor. Otherwise those events will go undetected until the next stream write.
Fixes: https://github.com/nodejs/node/issues/25131
Hey @seangoedecke, sorry your PR was not reviewed for so long! Any chance you would be able to rebase on top of main to get it back to a state where it can land? Or let me know if you prefer I do it for you.