Commit feae71c
fix(cli): drain stdout/stderr concurrently to prevent pipe deadlock
Sequential reads can deadlock when child process fills stderr pipe
buffer (~64KB) before stdout is consumed. Use Promise.all to drain
both streams in parallel.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c6f8096 commit feae71c
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
0 commit comments