Commit 4203d13
child_process: queue pending messages
It fixes the problem of the child process not receiving messages.
Fixes: #41134
PR-URL: #41221
Reviewed-By: Adrian Estrada <edsadr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Backport-PR-URL: #428401 parent c73ac52 commit 4203d13Copy full SHA for 4203d13
File tree
Expand file treeCollapse file tree
2 files changed
+51
-1
lines changedOpen diff view settings
Filter options
- lib/internal
- test/es-module
Expand file treeCollapse file tree
2 files changed
+51
-1
lines changedOpen diff view settings
Collapse file
lib/internal/child_process.js
Copy file name to clipboardExpand all lines: lib/internal/child_process.js+31-1Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
| 5 | + |
5 | 6 | |
6 | 7 | |
| 8 | + |
7 | 9 | |
8 | 10 | |
9 | 11 | |
| ||
73 | 75 | |
74 | 76 | |
75 | 77 | |
| 78 | + |
76 | 79 | |
77 | 80 | |
78 | 81 | |
| ||
520 | 523 | |
521 | 524 | |
522 | 525 | |
| 526 | + |
523 | 527 | |
524 | 528 | |
525 | 529 | |
| ||
693 | 697 | |
694 | 698 | |
695 | 699 | |
| 700 | + |
| 701 | + |
| 702 | + |
| 703 | + |
| 704 | + |
| 705 | + |
| 706 | + |
| 707 | + |
| 708 | + |
| 709 | + |
| 710 | + |
| 711 | + |
| 712 | + |
| 713 | + |
| 714 | + |
| 715 | + |
| 716 | + |
| 717 | + |
696 | 718 | |
697 | 719 | |
698 | 720 | |
| ||
909 | 931 | |
910 | 932 | |
911 | 933 | |
912 | | - |
| 934 | + |
| 935 | + |
| 936 | + |
| 937 | + |
| 938 | + |
| 939 | + |
| 940 | + |
| 941 | + |
| 942 | + |
913 | 943 | |
914 | 944 | |
915 | 945 | |
|
Collapse file
test/es-module/test-esm-child-process-fork-main.mjs
Copy file name to clipboard+20Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
0 commit comments