Skip to content

child_process: add public API to unref ipc channel #9313

Description

@mscdex
  • 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

No one assigned

    Labels

    child_processIssues and PRs related to the child_process subsystem.docIssues and PRs related to Node.js documentation.feature requestIssues requesting new Node.js features.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions