Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: refine child_process detach behaviour #5330

Closed
wants to merge 1 commit into from
Closed

doc: refine child_process detach behaviour #5330

wants to merge 1 commit into from

Conversation

eljefedelrodeodeljefe
Copy link
Contributor

This adds an example of a long running node process that actually
executes node code.
Also it mentions the not to harmonic detach behaviours of the
different platforms, which might also invite some core work.

I felt this to be necessary after researching for #5146, whereas the the behaviour of detaching seems highly inconsistent and very untransparent for the user.

/cc @nodejs/documentation

@ChALkeR ChALkeR added child_process Issues and PRs related to the child_process subsystem. doc Issues and PRs related to the documentations. labels Feb 19, 2016
provided with a `stdio` configuration that is not connected to the parent.
If the parent's `stdio` is inherited, the child will remain attached to the
controlling terminal.
*Note: that detaching process works highly platform specific*
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps: *Note that detaching a process is platform specific.* ... also would be good to list the platform specific differences here.

@jasnell
Copy link
Member

jasnell commented Mar 21, 2016

@nodejs/documentation

@eljefedelrodeodeljefe
Copy link
Contributor Author

enhanced upon @jasnell's comment.

Note, the reason I wanted to mention the specific behaviour down there again is because copy-pasting the either of the code snippet will likely lead to unwanted behaviour depending on which platform you are. The API isn't really consistent there, which of course is OS'es nature of different process implementations.

I also removed " and a you reference.

provided with a `stdio` configuration that is not connected to the parent.
If the parent's `stdio` is inherited, the child will remain attached to the
controlling terminal.
*Note: The behavior of detaching a process is platform specific, as described in
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at the new layout of the file, this note seems unnecessary.

@cjihrig
Copy link
Contributor

cjihrig commented Mar 30, 2016

LGTM with a few comments.

this adds an example of a long running node process that actually
executes node code.
Also it mentions the not to harmonic detach behaviours of the
different platforms, whereas detaching on unix requires ignoring
the child_process' stdio explicitely.
@eljefedelrodeodeljefe
Copy link
Contributor Author

@cjihrig addressed your comments. Content-wise I just omitted the SIGHUP discussion generically.

@cjihrig
Copy link
Contributor

cjihrig commented Mar 30, 2016

Cool. Thanks. If @jasnell is good with it, we can land this.

@jasnell
Copy link
Member

jasnell commented Apr 2, 2016

LGTM

jasnell pushed a commit that referenced this pull request Apr 2, 2016
this adds an example of a long running node process that actually
executes node code.
Also it mentions the not to harmonic detach behaviours of the
different platforms, whereas detaching on unix requires ignoring
the child_process' stdio explicitely.

PR-URL: #5330
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@jasnell
Copy link
Member

jasnell commented Apr 2, 2016

Landed in 82c2996

@jasnell jasnell closed this Apr 2, 2016
@eljefedelrodeodeljefe eljefedelrodeodeljefe deleted the doc/child_process-refine-detach branch April 2, 2016 19:20
MylesBorins pushed a commit that referenced this pull request Apr 5, 2016
this adds an example of a long running node process that actually
executes node code.
Also it mentions the not to harmonic detach behaviours of the
different platforms, whereas detaching on unix requires ignoring
the child_process' stdio explicitely.

PR-URL: #5330
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This was referenced Apr 5, 2016
MylesBorins pushed a commit that referenced this pull request Apr 8, 2016
this adds an example of a long running node process that actually
executes node code.
Also it mentions the not to harmonic detach behaviours of the
different platforms, whereas detaching on unix requires ignoring
the child_process' stdio explicitely.

PR-URL: #5330
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Apr 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
child_process Issues and PRs related to the child_process subsystem. doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants