Closed
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.