GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — child_process: expose ChildProcess constructor by evanlucas · Pull Request #1760 · nodejs/node

Conversation

@evanlucas

@evanlucas evanlucas commented May 21, 2015

Copy link
Copy Markdown
Contributor

Creates two new internal modules (child_process and socket_list) for
better readability.

Exposes the ChildProcess constructor from the child_process module so
one can now require(‘child_process’).ChildProcess

Related: #1751

Definitely needs more tests for the internal modules.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
chrisdickinson
chrisdickinson reviewed May 21, 2015
View reviewed changes
Comment thread test/parallel/test-child-process-require.js Outdated

@chrisdickinson chrisdickinson May 21, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

we should flesh out this test file a bit – make sure we can instantiate it, call spawn on it, and call kill on it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@evanlucas

evanlucas commented May 21, 2015

Copy link
Copy Markdown
Contributor Author

Absolutely. Definitely needs more tests. Wanted to get the initial implementation up to make sure this direction was ok. I'll get more pushed up tonight.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chrisdickinson
chrisdickinson reviewed May 21, 2015
View reviewed changes
Comment thread lib/internal/socket_list.js

@chrisdickinson chrisdickinson May 21, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I'd like it if we could move the exports up here, a la:

module.exports = {SocketListSend, SocketListReceive}

(We have shorthand object literals now, so we can take advantage of that!)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@evanlucas evanlucas May 22, 2015

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Strange, keep getting a lint error when using this. https://gist.github.com/evanlucas/0920f2b5cd90340cca27

Any ideas @silverwind? I've tried adding in an object-shorthand rule, but it didn't seem to do anything

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@silverwind silverwind May 22, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@evanlucas add objectLiteralShorthandProperties: true to ecmaFeatures

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@evanlucas evanlucas May 22, 2015

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

score. Thanks!!!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@chrisdickinson

chrisdickinson commented May 21, 2015

Copy link
Copy Markdown
Contributor

This looks great! Thanks for putting it together.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mscdex mscdex added the child_process Issues and PRs related to the child_process subsystem. label May 21, 2015
sindresorhus added a commit to sindresorhus/child-process-ctor that referenced this pull request May 22, 2015
@sindresorhus
init
2fa41df
see nodejs/node#1760
@evanlucas
evanlucas force-pushed the cp_internal branch 2 times, most recently from 822d38e to ada79e5 Compare May 22, 2015 14:53
@evanlucas

evanlucas commented May 22, 2015

Copy link
Copy Markdown
Contributor Author

Ok, added more to the tests

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas

evanlucas commented May 22, 2015

Copy link
Copy Markdown
Contributor Author

https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/699/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas

evanlucas commented May 23, 2015

Copy link
Copy Markdown
Contributor Author

Ok, I ran another CI run to see if it was this PR causing issues. https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/703/

I am not sure if it is or not. Seems to be some failures on win2008r2 still

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silverwind

silverwind commented May 23, 2015

Copy link
Copy Markdown
Contributor

@evanlucas these look suspiciously like the ones that were failing before. Maybe start off a CI off master to be sure.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas

evanlucas commented May 23, 2015

Copy link
Copy Markdown
Contributor Author

Yea, seeing if I can reproduce locally now

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silverwind

silverwind commented May 23, 2015

Copy link
Copy Markdown
Contributor

CI off master to compare: https://jenkins-iojs.nodesource.com/view/iojs/job/iojs+any-pr+multi/704/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas

evanlucas commented May 24, 2015

Copy link
Copy Markdown
Contributor Author

Tests passed locally on windows 7 for me. I did get a dialog asking to allow access on one of the tests (not sure which one though)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silverwind

silverwind commented May 24, 2015

Copy link
Copy Markdown
Contributor

#1777 (comment) explains the win2008 failures.

New CI: https://jenkins-iojs.nodesource.com/view/iojs/job/iojs+any-pr+multi/708/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silverwind silverwind mentioned this pull request May 25, 2015
net: make stdout & stderr block on all platforms #1771
Closed
@evanlucas

evanlucas commented May 26, 2015

Copy link
Copy Markdown
Contributor Author

Nice, CI seems to like it

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrisdickinson

chrisdickinson commented May 28, 2015

Copy link
Copy Markdown
Contributor

This LGTM.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

evanlucas added 2 commits May 28, 2015 09:35
@evanlucas
tools: add objectLiteralShorthandProperties to .eslintrc
fbd2b59
Required to make linting pass for using object literal
shorthand properties.

PR-URL: nodejs#1760
Reviewed-By: Chris Dickinson <[email protected]>
@evanlucas
child_process: expose ChildProcess constructor
a77c330
Creates two new internal modules (child_process and socket_list) for
better readability.

Exposes the ChildProcess constructor from the child_process module so
one can now `require(‘child_process’).ChildProcess`

Fixes: nodejs#1751
PR-URL: nodejs#1760
Reviewed-By: Chris Dickinson <[email protected]>
@evanlucas
evanlucas force-pushed the cp_internal branch from ada79e5 to a77c330 Compare May 28, 2015 14:39
@evanlucas
evanlucas merged commit a77c330 into nodejs:master May 28, 2015
@evanlucas
evanlucas deleted the cp_internal branch May 28, 2015 14:39
@Fishrock123 Fishrock123 added the semver-minor PRs that contain new features and should be released in the next minor version. label May 28, 2015
@evanlucas

evanlucas commented May 28, 2015

Copy link
Copy Markdown
Contributor Author

Thanks. Landed in fbd2b59 and a77c330

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas evanlucas mentioned this pull request May 28, 2015
Expose the ChildProcess constructor #1751
Closed
@isaacs

isaacs commented May 28, 2015

Copy link
Copy Markdown
Contributor

Awesome stuff. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silverwind silverwind mentioned this pull request May 29, 2015
Release proposal: v2.2.0 #1808
Merged
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
@evanlucas @andrewdeandrade
tools: add objectLiteralShorthandProperties to .eslintrc
3b3bed8
Required to make linting pass for using object literal
shorthand properties.

PR-URL: nodejs/node#1760
Reviewed-By: Chris Dickinson <[email protected]>
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
@evanlucas @andrewdeandrade
child_process: expose ChildProcess constructor
d78922c
Creates two new internal modules (child_process and socket_list) for
better readability.

Exposes the ChildProcess constructor from the child_process module so
one can now `require(‘child_process’).ChildProcess`

Fixes: nodejs/node#1751
PR-URL: nodejs/node#1760
Reviewed-By: Chris Dickinson <[email protected]>
@eljefedelrodeodeljefe

eljefedelrodeodeljefe commented May 6, 2016

Copy link
Copy Markdown
Contributor

In hindsight I would regard this as really bad decision just to have sugar for extension. This doesn't allow a decent rewrite of the child_process module which I will attempt now and wanted to do behind require('child_process').ChildProcess. In the future please evaluate more carefully.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eljefedelrodeodeljefe eljefedelrodeodeljefe mentioned this pull request May 6, 2016
child_process: revert exposing child process constructor #6619
Closed
3 tasks done
@snyk-bot snyk-bot mentioned this pull request Apr 2, 2021
[Snyk] Security upgrade snyk from 1.437.3 to 1.518.0 turkdevops/node#241
Closed
@snyk-bot snyk-bot mentioned this pull request Aug 24, 2021
[Snyk] Security upgrade snyk from 1.437.3 to 1.518.0 turkdevops/node#317
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

child_process Issues and PRs related to the child_process subsystem. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@evanlucas @chrisdickinson @silverwind @isaacs @eljefedelrodeodeljefe @Fishrock123 @mscdex
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.