We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31196ea commit 835fbeeCopy full SHA for 835fbee
1 file changed
lib/child_process.js
@@ -50,8 +50,8 @@ exports.fork = function(modulePath /*, args, options*/) {
50
args = execArgv.concat([modulePath], args);
51
52
if (!Array.isArray(options.stdio)) {
53
- // Leave stdin open for the IPC channel. stdout and stderr should be the
54
- // same as the parent's if silent isn't set.
+ // Use a separate fd=3 for the IPC channel. Inherit stdin, stdout,
+ // and stderr from the parent if silent isn't set.
55
options.stdio = options.silent ? ['pipe', 'pipe', 'pipe', 'ipc'] :
56
[0, 1, 2, 'ipc'];
57
} else if (options.stdio.indexOf('ipc') === -1) {
0 commit comments