Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
child_process: add .stdin stream to forks
Browse files Browse the repository at this point in the history
Remove test as it doesn't make any sense after the latest stdio API
changes.
  • Loading branch information
indutny committed Jun 18, 2012
1 parent 057b806 commit 0a89e8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
3 changes: 2 additions & 1 deletion lib/child_process.js
Expand Up @@ -437,7 +437,8 @@ exports.fork = function(modulePath /*, args, options*/) {

// Leave stdin open for the IPC channel. stdout and stderr should be the
// same as the parent's if silent isn't set.
options.stdio = options.silent ? ['ipc', 'pipe', 'pipe'] : ['ipc', 1, 2];
options.stdio = options.silent ? ['pipe', 'pipe', 'pipe', 'ipc'] :
[0, 1, 2, 'ipc'];

return spawn(process.execPath, args, options);
};
Expand Down
32 changes: 0 additions & 32 deletions test/simple/test-child-process-fork3.js

This file was deleted.

0 comments on commit 0a89e8b

Please sign in to comment.