Repository navigation
Commit 383db06
committed
fix(provider-acp): wait_for_exit answers when a background child holds the output pipes
The exit handler waited for stdout and stderr to reach EOF before publishing
the exit status. A detached child that inherits the pipes keeps them open,
so terminal/wait_for_exit never answered and the turn stalled. Give the
output pumps a short grace to drain after exit, then publish the status;
the pumps keep appending any later output.
Fixes #28067
AI-assisted; verified with the tests and tools listed above.1 parent e912ca1 commit 383db06
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
| 305 | + | |
| 306 | + | |
304 | 307 | | |
305 | 308 | | |
306 | 309 | | |
| |||
0 commit comments