Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: note message event listeners ref IPC channels
The IPC channel is referenced with the message event too.
  • Loading branch information
DiegoRBaquero authored and sam-github committed Feb 22, 2017
commit 757cff4c5d7ae2edd3741b96026f75bce06ef870
6 changes: 3 additions & 3 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ spawn('prg', [], { stdio: ['pipe', null, null, null, 'pipe'] });
*It is worth noting that when an IPC channel is established between the
parent and child processes, and the child is a Node.js process, the child
is launched with the IPC channel unreferenced (using `unref()`) until the
child registers an event handler for the [`process.on('disconnect')`][] event.
This allows the child to exit normally without the process being held open
by the open IPC channel.*
child registers an event handler for the [`process.on('disconnect')`][] event
or the [`process.on('message')`][] event.This allows the child to exit normally
without the process being held open by the open IPC channel.*

See also: [`child_process.exec()`][] and [`child_process.fork()`][]

Expand Down