diff --git a/lib/child_process.js b/lib/child_process.js index 6e499697eed00f..5a0fd6e21ed5e4 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -45,8 +45,8 @@ exports.fork = function(modulePath /*, args, options*/) { args = execArgv.concat([modulePath], args); if (!Array.isArray(options.stdio)) { - // Leave stdin open for the IPC channel. stdout and stderr should be the - // 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. options.stdio = options.silent ? ['pipe', 'pipe', 'pipe', 'ipc'] : [0, 1, 2, 'ipc']; } else if (options.stdio.indexOf('ipc') === -1) {