process,tty: allow reading/writing from duplex sockets
As of libuv 1.23.1, the direction of OS-level streams is automatically detected, meaning that reading from stdout
/stderr
and writing to process.stdin
are working again. Making this work completely (i.e. no error when the stream ends) requires some additional fixups to our stdio code.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines