child_process: emit IPC messages on next tick · nodejs/node@16f2600 · GitHub
Skip to content

Commit 16f2600

Browse files
cjihrigaddaleax
authored andcommitted
child_process: emit IPC messages on next tick
This commit fixes a regression related to IPC 'message' events. When messages are not emitted in the next tick, a 'message' handler that throws can break the IPC read loop. Refs: #6909 Refs: #13459 Refs: #13648 PR-URL: #13856 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent f2d7b80 commit 16f2600

2 files changed

Lines changed: 46 additions & 11 deletions

File tree

lib/internal/child_process.js

Lines changed: 7 additions & 11 deletions
Lines changed: 39 additions & 0 deletions

0 commit comments

Comments
 (0)