Skip to content

Commit

Permalink
child_process: update outdated comment
Browse files Browse the repository at this point in the history
PR-URL: #8988
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
tanujasawant authored and Myles Borins committed Nov 11, 2016
1 parent 9de8cfe commit cbfde3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cbfde3c

Please sign in to comment.