node: do not crash on IPC stdin
authorFedor Indutny <fedor@indutny.com>
Tue, 4 Nov 2014 05:08:41 +0000 (00:08 -0500)
committerFedor Indutny <fedor@indutny.com>
Tue, 4 Nov 2014 16:21:43 +0000 (11:21 -0500)
commitef46ca61b5e0acd6c05860ae70d75651296ea260
tree26fb8c79055d0684876b833ae2f283bfc0235e2e
parentb1dcaadb0e013daee866995c6be48841dbcf4af3
node: do not crash on IPC stdin

When started with IPC pipe on fd=0 child process should not crash when
referencing or using `process.stdin`.

fix joyent/node#8669

PR-URL: https://github.com/node-forward/node/pull/45
Reviewed-By: Ben Noorhduis <info@bnoordhuis.nl>
src/node.js
test/simple/test-child-process-stdin-ipc.js [new file with mode: 0644]