From e5ed61f4e5c8dec4925e9d659c3744012b214f22 Mon Sep 17 00:00:00 2001 From: Tanuja-Sawant Date: Fri, 7 Oct 2016 15:20:27 +0530 Subject: [PATCH] Changed the comment on lines 53-54, fixing issue 8927 --- lib/child_process.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/child_process.js b/lib/child_process.js index a7815ac85c3bbf..7c99eecc39c019 100644 --- a/lib/child_process.js +++ b/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=4 for 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) {