Commit 618caa5d authored by Evan Lucas's avatar Evan Lucas Committed by Rod Vagg
Browse files

child_process: use stdio.fd even if it is 0

Previously, in _validateStdio we were using stdio.fd || stdio. If
stdio.fd was falsy (or 0 in the case of stdin), then the entire stdio
object would be passed which could cause a crash.

Fixes: https://github.com/nodejs/node/issues/2721
PR-URL: https://github.com/nodejs/node/pull/2727


Reviewed-By: default avatarsilverwind - Roman Reiss <me@silverwind.io>
Reviewed-By: default avatarcjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarindutny - Fedor Indutny <fedor.indutny@gmail.com>
parent 4237373d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment