Commit d8140d8
Port upstream PR #329: hide CLI console window on Windows
Add explicit PIPE redirect configuration to ProcessBuilder in spawn-cli,
ensuring the JVM sets CREATE_NO_WINDOW on Windows. This prevents a
console window from appearing when spawning the CLI from GUI applications.
The JVM's ProcessImpl already uses CREATE_NO_WINDOW when all stdio handles
are pipes (not inherited from parent console). Making the PIPE redirects
explicit documents this intent and protects against regressions.
Co-authored-by: krukow <3635+krukow@users.noreply.github.com>1 parent 812181e commit d8140d8
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| |||
0 commit comments