-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Description
- Version: all
- Platform: n/a
- Subsystem: child_process
It would be nice to have a public API to unref()
a child process's ipc channel. My use case for this is that I spawn a child process, send some messages back and forth via ipc, then at some point I want to detach the child process. child.unref()
is not enough because that only unrefs the C++ ProcessWrap handle. Currently I have to resort to also doing child._channel.unref()
. I am not sure if this should be done automatically inside child.unref()
or if there should be a separate function or similar.
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.