Commit 1805236
committed
process: provide dummy stdio for non-console Windows apps
The only known condition where we could not provide appropriate
stdio streams so far were non-console Windows applications.
Since this issue has come up a few times in our issue tracker now,
switch to providing dummy streams for these cases instead.
If there are other valid cases in which `uv_guess_handle` fails,
and where there is a more sensible way to provide stdio,
we’ll probably still find out because the streams don’t work
properly either way.
Refs: nodejs/help#1251
PR-URL: #20640
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 272ddb1 commit 1805236Copy full SHA for 1805236
File tree
Expand file treeCollapse file tree
4 files changed
+68
-26
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- process
- test/parallel
Expand file treeCollapse file tree
4 files changed
+68
-26
lines changedOpen diff view settings
Collapse file
+22-14Lines changed: 22 additions & 14 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1810 | 1810 | |
1811 | 1811 | |
1812 | 1812 | |
1813 | | - |
1814 | | - |
1815 | | - |
1816 | | - |
1817 | | - |
1818 | | - |
1819 | | - |
1820 | | - |
1821 | | - |
1822 | | - |
1823 | | - |
1824 | | - |
1825 | | - |
1826 | | - |
1827 | 1813 | |
1828 | 1814 | |
1829 | 1815 | |
| ||
2080 | 2066 | |
2081 | 2067 | |
2082 | 2068 | |
| 2069 | + |
| 2070 | + |
| 2071 | + |
| 2072 | + |
| 2073 | + |
| 2074 | + |
| 2075 | + |
| 2076 | + |
| 2077 | + |
| 2078 | + |
| 2079 | + |
| 2080 | + |
| 2081 | + |
| 2082 | + |
| 2083 | + |
| 2084 | + |
| 2085 | + |
| 2086 | + |
| 2087 | + |
| 2088 | + |
| 2089 | + |
| 2090 | + |
2083 | 2091 | |
2084 | 2092 | |
2085 | 2093 | |
|
Collapse file
-3Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
947 | 947 | |
948 | 948 | |
949 | 949 | |
950 | | - |
951 | 950 | |
952 | | - |
953 | | - |
954 | 951 | |
955 | 952 | |
956 | 953 | |
|
Collapse file
lib/internal/process/stdio.js
Copy file name to clipboardExpand all lines: lib/internal/process/stdio.js+19-9Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | 3 | |
9 | 4 | |
10 | 5 | |
| ||
87 | 82 | |
88 | 83 | |
89 | 84 | |
90 | | - |
91 | | - |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
92 | 90 | |
93 | 91 | |
94 | 92 | |
| ||
123 | 121 | |
124 | 122 | |
125 | 123 | |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
126 | 130 | |
127 | 131 | |
128 | 132 | |
| ||
199 | 203 | |
200 | 204 | |
201 | 205 | |
202 | | - |
203 | | - |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
204 | 214 | |
205 | 215 | |
206 | 216 | |
|
Collapse file
test/parallel/test-dummy-stdio.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