Commit e1af0ee
committed
Ignore stdio on Windows when not waiting for process
Previously, when using PowerShell on Windows to open URLs or files without the `wait` option, the parent Node.js process would not exit naturally. Users had to press Ctrl+C to terminate the script. This happened because PowerShell kept stdio streams open, preventing the parent process from exiting even though `subprocess.unref()` was called.
Fixes #1971 parent 281be7d commit e1af0ee
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
| |||
0 commit comments