child_process: fix stdio sockets creation
readable
and writable
properties can be passed directly to the
net.Socket
constructor. This change also avoids an unnecessary call
to read(0)
on the stdin
socket. This behavior was disclosed when
trying to merge libuv@1.19.0
and specifically this commit:
https://github.com/libuv/libuv/commit/fd049399aa4ed8495928e375466970d98cb42e17.
Refs: https://github.com/libuv/libuv/pull/1655
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
child_process