Commit 1434e7f
src: ensure that fd 0-2 are valid on windows
Check that stdin, stdout and stderr are valid file descriptors on
Windows. If not, reopen them with 'nul' file.
Refs: #875
Fixes: #11656
PR-URL: #11863
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 4a97bc7 commit 1434e7fCopy full SHA for 1434e7f
File tree
Expand file treeCollapse file tree
3 files changed
+34
-1
lines changedOpen diff view settings
Filter options
- src
- test
- fixtures
- parallel
Expand file treeCollapse file tree
3 files changed
+34
-1
lines changedOpen diff view settings
Collapse file
+13Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4298 | 4298 | |
4299 | 4299 | |
4300 | 4300 | |
| 4301 | + |
| 4302 | + |
| 4303 | + |
| 4304 | + |
| 4305 | + |
| 4306 | + |
| 4307 | + |
| 4308 | + |
| 4309 | + |
| 4310 | + |
| 4311 | + |
| 4312 | + |
| 4313 | + |
4301 | 4314 | |
4302 | 4315 | |
4303 | 4316 | |
|
Collapse file
test/fixtures/spawn_closed_stdio.py
Copy file name to clipboard+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
Collapse file
test/parallel/test-stdio-closed.js
Copy file name to clipboardExpand all lines: test/parallel/test-stdio-closed.js+13-1Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | | - |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
9 | 21 | |
10 | 22 | |
11 | 23 | |
|
0 commit comments