Skip to content

fix: avoid Windows cached stdio drain hang#486

Open
kazupon wants to merge 1 commit into
voidzero-dev:mainfrom
kazupon:fix/windows-cached-stdio-hang
Open

fix: avoid Windows cached stdio drain hang#486
kazupon wants to merge 1 commit into
voidzero-dev:mainfrom
kazupon:fix/windows-cached-stdio-hang

Conversation

@kazupon

@kazupon kazupon commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #485

Windows cached execution could hang after the first command in a compound script when the direct child had exited but a descendant still held inherited stdout/stderr pipe handles.

This updates run_child to poll stdio drain and direct child wait concurrently, then signal IPC drain as soon as the child exits.

It also adds a Windows-only E2E fixture that models the inherited-handle case and verifies the next && command is planned to run instead of waiting on pipe EOF.

Co-authored-by: GPT-5 Codex <codex@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows cached task hangs after first compound command when stdio pipe remains open

1 participant