Uh oh!
There was an error while loading. Please reload this page.
lib: update outdated comment - #8968
Conversation
jasnell
left a comment
There was a problem hiding this comment.
LGTM.
Thank you @Tanuja-Sawant!
This change is small enough that it should not need to wait the full 48 hours to land.
jasnell
commented
Oct 7, 2016
One nit: @Tanuja-Sawant, can you please update the commit log message to follow the guidelines described in the contributor's guide? |
tanujasawant
commented
Oct 7, 2016
@jasnell is this commit log fine? |
jasnell
commented
Oct 7, 2016
@Tanuja-Sawant ... my apologies for not being clear. I meant the actual commit log message here: e5ed61f. You can update it using |
| 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 |
There was a problem hiding this comment.
I think the correct fd index for the IPC channel here should be fd=3, not fd=4.
Quoting the docs:The fds 0, 1, and 2 correspond to stdin, stdout, and stderr, respectively.
| 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 |
There was a problem hiding this comment.
Please leave the "the" before "IPC channel". Also, please add a comma after "stdout."
tanujasawant
commented
Oct 9, 2016
Hi! |
Checklist
Affected core subsystem(s)
just comments
Description of change
Updated an outdated comment in child_process.js to describe the code better.