Skip to content

child_process: handle zero fd in process.stdin

Rodrigo Muino Tomonari requested to merge github/fork/indutny/fix/gh-2721 into master

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.

Fix: https://github.com/nodejs/node/issues/2721

Merge request reports

Loading