Add a parameter to spawn() that sets the child's stdio file descriptors.
authorOrlando Vazquez <ovazquez@gmail.com>
Tue, 1 Jun 2010 07:56:08 +0000 (00:56 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 2 Jun 2010 17:41:24 +0000 (10:41 -0700)
commit92da636b977282d58f1d43560387f3e9bff6be4d
treed68fc3f4b3bde3f26137d2272dcf4bfb789f649f
parent501136b99940bacbdc436979af459ee5c0cfdb52
Add a parameter to spawn() that sets the child's stdio file descriptors.

After the child is forked, these file descriptors will get dup2()'d to STDIN,
STDIO, and STDERR.

(API may be changed.)
lib/child_process.js
src/node_child_process.cc
src/node_child_process.h
test/fixtures/stdio-filter.js [new file with mode: 0644]
test/simple/test-child-process-custom-fds.js [new file with mode: 0644]