Skip to content

Commit cbfde3c

Browse files
tanujasawantMyles Borins
authored and
Myles Borins
committed
child_process: update outdated comment
PR-URL: #8988 Reviewed-By: James M Snell <[email protected]>
1 parent 9de8cfe commit cbfde3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/child_process.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ exports.fork = function(modulePath /*, args, options*/) {
4545
args = execArgv.concat([modulePath], args);
4646

4747
if (!Array.isArray(options.stdio)) {
48-
// Leave stdin open for the IPC channel. stdout and stderr should be the
49-
// same as the parent's if silent isn't set.
48+
// Use a separate fd=3 for the IPC channel. Inherit stdin, stdout,
49+
// and stderr from the parent if silent isn't set.
5050
options.stdio = options.silent ? ['pipe', 'pipe', 'pipe', 'ipc'] :
5151
[0, 1, 2, 'ipc'];
5252
} else if (options.stdio.indexOf('ipc') === -1) {

0 commit comments

Comments
 (0)