child_process: handle zero fd in process.stdin
When passing process.stdin
in stdio
options to
child_process.spawn
, make sure that its fd
is getting passed
properly to the C++ internals. It is 0
, so the stdio.fd || stdio
check will return process.stdin
, instead of the number.