Skip to content

Commit 56cd193

Browse files
DiegoRBaqueroitaloacasas
authored andcommitted
doc: note message event listeners ref IPC channels
The IPC channel is referenced with the message event too. PR-URL: #11494 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent d7fd694 commit 56cd193

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/child_process.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,9 @@ spawn('prg', [], { stdio: ['pipe', null, null, null, 'pipe'] });
569569
*It is worth noting that when an IPC channel is established between the
570570
parent and child processes, and the child is a Node.js process, the child
571571
is launched with the IPC channel unreferenced (using `unref()`) until the
572-
child registers an event handler for the [`process.on('disconnect')`][] event.
573-
This allows the child to exit normally without the process being held open
574-
by the open IPC channel.*
572+
child registers an event handler for the [`process.on('disconnect')`][] event
573+
or the [`process.on('message')`][] event.This allows the child to exit normally
574+
without the process being held open by the open IPC channel.*
575575

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

0 commit comments

Comments
 (0)