Skip to content

Wait for orphan reaping in cancellation test - #15

Merged
syz51 merged 1 commit into
mainfrom
fix/macos-cancellation-check
Oct 29, 2026
Merged

syz51 merged 1 commit into
mainfrom
fix/macos-cancellation-check

Conversation

@syz51

@syz51 syz51 commented Oct 29, 2026

Copy link
Copy Markdown
Owner

The blocked-output cancellation test assumed a grandchild PID disappears as soon as the wrapper exits. Main CI on macOS showed the direct Codex process was reaped while the grandchild still answered signal 0; an orphaned zombie can remain visible until the OS reaps it.

Wait for grandchild disappearance within the test's existing five-second deadline. Keep the immediate direct-child reaping assertion, cancellation exit status, and failure on persistent descendants. Runtime cancellation behavior is unchanged.

Validation: formatting and workspace Clippy, all 96 workspace tests, and 200 focused stress runs covering 400 responsive/unresponsive cases. The original timing failure did not reproduce in 80 baseline runs; a controlled zombie experiment confirmed the signal-0 distinction. Independent review found no issues.

@syz51
syz51 enabled auto-merge (squash) October 29, 2026 09:29
@syz51
syz51 merged commit 14d64d6 into main Oct 29, 2026
4 checks passed
@syz51
syz51 deleted the fix/macos-cancellation-check branch October 29, 2026 09:33
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.

1 participant