Skip to content

Commit 6eb614a

Browse files
DiegoRBaquerosam-github
authored andcommitted
doc: note message event listeners ref IPC channels
The IPC channel is referenced with the message event too. PR-URL: nodejs#11494 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent d42296b commit 6eb614a

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
@@ -572,9 +572,9 @@ spawn('prg', [], { stdio: ['pipe', null, null, null, 'pipe'] });
572572
*It is worth noting that when an IPC channel is established between the
573573
parent and child processes, and the child is a Node.js process, the child
574574
is launched with the IPC channel unreferenced (using `unref()`) until the
575-
child registers an event handler for the [`process.on('disconnect')`][] event.
576-
This allows the child to exit normally without the process being held open
577-
by the open IPC channel.*
575+
child registers an event handler for the [`process.on('disconnect')`][] event
576+
or the [`process.on('message')`][] event.This allows the child to exit normally
577+
without the process being held open by the open IPC channel.*
578578

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

0 commit comments

Comments
 (0)