Skip to content

Conversation

@tflanagan
Copy link
Contributor

Fixes FIXMEs in lib/internal/child_process.js ref's #4642

... process.nextTick(callback,ex);}else{this.emit('error',ex);// FIXME(bnoordhuis) Defer to next tick.}returnfalse; ... process.nextTick(callback,ex);}else{this.emit('error',ex);// FIXME(bnoordhuis) Defer to next tick.}}

@mscdexmscdex added the child_process Issues and PRs related to the child_process subsystem. label Jan 13, 2016
@jasnelljasnell added the semver-minor PRs that contain new features and should be released in the next minor version. label Jan 13, 2016
@jasnell
Copy link
Member

Marking this as a possible semver-minor due to the change in the timing. @bnoordhuis .. thoughts on this one?

@cjihrig
Copy link
Contributor

Wouldn't a change in timing be a semver-major change?

@jasnell
Copy link
Member

Possibly yes.

@tflanagantflanaganforce-pushed the internal-cp-fixme-defer-nt branch from fece1f9 to 2c41576CompareJanuary 22, 2016 19:40
@tflanagan
Copy link
ContributorAuthor

I've updated this PR to match master

@jasnell
Copy link
Member

@bnoordhuis ... thoughts?

@tflanagan
Copy link
ContributorAuthor

/poke @bnoordhuis

@Trott
Copy link
Member

@thefourtheye
Copy link
Contributor

Related work: #5251

@jasnell
Copy link
Member

@bnoordhuis@tflanagan ... ping

@bnoordhuis
Copy link
Member

LGTM if tests pass. I'd make it semver-major just to be safe. CI: https://ci.nodejs.org/job/node-test-pull-request/2027/

@jasnelljasnell added semver-major PRs that contain breaking changes and should be released in the next major version. and removed semver-minor PRs that contain new features and should be released in the next minor version. labels Mar 22, 2016
@estliberitasestliberitasforce-pushed the master branch 2 times, most recently from 7da4fd4 to c7066fbCompareApril 26, 2016 05:22
@MylesBorins
Copy link
Contributor

should we add this to the v7 milestone?

@imyller
Copy link
Member

FIXME states that emitting error should be deferred to next tick. setImmediate does this.

process.nextTick and setImmediate have confusing names, since setImmediate will actually defer emitting the error to next tick and process.nextTick will emit error within current tick cycle.

Thus nextTick has lower latency, but does it matter in this case?

@Trott
Copy link
Member

LGTM. Since it's semver-major (out of caution, not because this is actually expected to cause huge problems), I'm going to ping @nodejs/ctc to see if anyone else wants to LGTM or wait wait wait wat no no no this.

Also, since it's been dormant a while, might be good to run one last CI. Also a CITGM because: semver-major.

CI: https://ci.nodejs.org/job/node-test-pull-request/4076/
CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/387/

@mscdex
Copy link
Contributor

mscdex commented Sep 16, 2016

IMHO I don't think it has to be until the next actual tick, I think the original idea was to allow the user to have time to set up an error event handler before it's emitted. process.nextTick() accomplishes this without further unnecessary delay. It's also what is used throughout the code base whenever similar situations arise.

@imyller
Copy link
Member

Agree with @mscdex

LGTM pending new CI and ctc comments

Copy link
Contributor

@cjihrigcjihrig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@santigimeno
Copy link
Member

LGTM

@evanlucas
Copy link
Contributor

Running CI one more time: https://ci.nodejs.org/job/node-test-pull-request/4126/

@jasnell
Copy link
Member

ping @nodejs/ctc ... did we want to land this?

@jasnelljasnell added the stalled Issues and PRs that are stalled. label Mar 1, 2017
@fhinkel
Copy link
Member

There's two approvals and no rejection, so I'd say...yes?

@gibfahn
Copy link
Member

3 ctc approvals (@bnoordhuis@Trott@cjihrig ) and 2 other collaborator ones ( @imyller@santigimeno) so it should be good to land, probably needs another CI and CitGM run though.

@BridgeAR
Copy link
Member

Seems like this is not stalled and it only has to land?

@TrottTrott removed the stalled Issues and PRs that are stalled. label Aug 10, 2017
@Trott
Copy link
Member

Trott pushed a commit to Trott/io.js that referenced this pull request Aug 13, 2017
PR-URL: nodejs#4670 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ilkka Myller <[email protected]>
@Trott
Copy link
Member

Landed in f2b01cb.

Triageathon 2017!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

child_processIssues and PRs related to the child_process subsystem.semver-majorPRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

14 participants

@tflanagan@jasnell@cjihrig@Trott@thefourtheye@bnoordhuis@MylesBorins@imyller@mscdex@santigimeno@evanlucas@fhinkel@gibfahn@BridgeAR