diff options
author | Tyler Neylon <tylerneylon@gmail.com> | 2012-08-03 12:38:09 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-08-04 11:30:58 -0700 |
commit | b48684c6f1958930741e2cf34a6a6d5cafa7f478 (patch) | |
tree | e3ad8daa0ea3ab37573dad5f444c8494ff7c1fdb /lib/zlib.js | |
parent | a7f3288a87c563f0910f17cbed503574b6ceea54 (diff) | |
download | node-b48684c6f1958930741e2cf34a6a6d5cafa7f478.tar.gz |
child_process: Fix stdout=null when stdio=['pipe']
Previously, a command with a short stdio array would result in the child's
stdout and stderr objects set to null. For example:
var c = child_process.spawn(cmd, args, {stdio: ['pipe']});
// results in c.stdout === null.
The expected behavior is the above line functioning the same as this one:
var c = child_process.spawn(cmd, args, {stdio: ['pipe', null, null]});
// provides correct (non-null) c.stdout; as does the above, after this fix.
Diffstat (limited to 'lib/zlib.js')
0 files changed, 0 insertions, 0 deletions