Permalink
Browse files

child_process: update outdated comment

PR-URL: #8988
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
tanujasawant authored and jasnell committed Oct 9, 2016
1 parent 6f1cae7 commit 6eece7773e45561f07d6a5f49c9347a27cbc595b
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/child_process.js
@@ -50,8 +50,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) {

0 comments on commit 6eece77

Please sign in to comment.