Browse Source

child_process: update outdated comment

PR-URL: https://github.com/nodejs/node/pull/8988/
Reviewed-By: James M Snell <jasnell@gmail.com>
v6
Tanuja-Sawant 8 years ago
committed by James M Snell
parent
commit
835fbeee00
  1. 4
      lib/child_process.js

4
lib/child_process.js

@ -50,8 +50,8 @@ exports.fork = function(modulePath /*, args, options*/) {
args = execArgv.concat([modulePath], args); args = execArgv.concat([modulePath], args);
if (!Array.isArray(options.stdio)) { if (!Array.isArray(options.stdio)) {
// Leave stdin open for the IPC channel. stdout and stderr should be the // Use a separate fd=3 for the IPC channel. Inherit stdin, stdout,
// same as the parent's if silent isn't set. // and stderr from the parent if silent isn't set.
options.stdio = options.silent ? ['pipe', 'pipe', 'pipe', 'ipc'] : options.stdio = options.silent ? ['pipe', 'pipe', 'pipe', 'ipc'] :
[0, 1, 2, 'ipc']; [0, 1, 2, 'ipc'];
} else if (options.stdio.indexOf('ipc') === -1) { } else if (options.stdio.indexOf('ipc') === -1) {

Loading…
Cancel
Save