Commit 8169902
child_process: add ChildProcess 'spawn' event
The new event signals that the subprocess has spawned successfully and
no 'error' event will be emitted from failing to spawn.
Fixes: #35288
PR-URL: #35369
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>1 parent c922578 commit 8169902Copy full SHA for 8169902
File tree
Expand file treeCollapse file tree
4 files changed
+51
-0
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- test/parallel
Expand file treeCollapse file tree
4 files changed
+51
-0
lines changedOpen diff view settings
Collapse file
+15Lines changed: 15 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1036 | 1036 | |
1037 | 1037 | |
1038 | 1038 | |
| 1039 | + |
| 1040 | + |
| 1041 | + |
| 1042 | + |
| 1043 | + |
| 1044 | + |
| 1045 | + |
| 1046 | + |
| 1047 | + |
| 1048 | + |
| 1049 | + |
| 1050 | + |
| 1051 | + |
| 1052 | + |
| 1053 | + |
1039 | 1054 | |
1040 | 1055 | |
1041 | 1056 | |
|
Collapse file
lib/internal/child_process.js
Copy file name to clipboardExpand all lines: lib/internal/child_process.js+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
401 | 401 | |
402 | 402 | |
403 | 403 | |
| 404 | + |
| 405 | + |
404 | 406 | |
405 | 407 | |
406 | 408 | |
| ||
466 | 468 | |
467 | 469 | |
468 | 470 | |
| 471 | + |
| 472 | + |
| 473 | + |
| 474 | + |
| 475 | + |
469 | 476 | |
470 | 477 | |
471 | 478 | |
|
Collapse file
test/parallel/test-child-process-spawn-error.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-spawn-error.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
41 | 41 | |
42 | 42 | |
43 | 43 | |
| 44 | + |
| 45 | + |
44 | 46 | |
45 | 47 | |
46 | 48 | |
|
Collapse file
test/parallel/test-child-process-spawn-event.js
Copy file name to clipboard+27Lines changed: 27 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 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
0 commit comments