Commit e854f60
committed
child_process: add keepOpen option to send()
This option allows an instance of net.Socket to be kept open in
the sending process.
Fixes: #4271
PR-URL: #5283
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 1952844 commit e854f60Copy full SHA for e854f60
File tree
Expand file treeCollapse file tree
3 files changed
+67
-6
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- test/parallel
Expand file treeCollapse file tree
3 files changed
+67
-6
lines changedOpen diff view settings
Collapse file
doc/api/child_process.markdown
Copy file name to clipboardExpand all lines: doc/api/child_process.markdown+6-1Lines changed: 6 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
803 | 803 | |
804 | 804 | |
805 | 805 | |
806 | | - |
| 806 | + |
| 807 | + |
| 808 | + |
| 809 | + |
| 810 | + |
| 811 | + |
807 | 812 | |
808 | 813 | |
809 | 814 | |
|
Collapse file
lib/internal/child_process.js
Copy file name to clipboardExpand all lines: lib/internal/child_process.js+9-5Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
78 | 78 | |
79 | 79 | |
80 | 80 | |
81 | | - |
| 81 | + |
| 82 | + |
82 | 83 | |
83 | 84 | |
| 85 | + |
| 86 | + |
84 | 87 | |
85 | 88 | |
86 | | - |
87 | | - |
88 | | - |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
89 | 93 | |
90 | 94 | |
91 | 95 | |
92 | 96 | |
93 | 97 | |
94 | 98 | |
95 | | - |
| 99 | + |
96 | 100 | |
97 | 101 | |
98 | 102 | |
|
Collapse file
test/parallel/test-child-process-send-keep-open.js
Copy file name to clipboard+52Lines changed: 52 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 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
0 commit comments