Skip to content

Retire the IPC poll before closing its loop - #134

Merged
bavulapati merged 1 commit into
mainfrom
test-poll-order-before-loop-close
Sep 18, 2026
Merged

bavulapati merged 1 commit into
mainfrom
test-poll-order-before-loop-close

Conversation

@bavulapati

Copy link
Copy Markdown
Contributor

The two poll tests close their loop while the poll is still armed. The worklet's exit makes the host end readable, the poll's callback posts to that loop, and the callback then runs against a closed loop.

Pipes hide it, because their EOF arrives asynchronously at thread teardown, so the wake lands after the test is done. It is wrong on any transport though, and it segfaults on linux-x64 once EOF is synchronous - which is how I found it, in #94.

Split out of #94 so it can land on its own. Verified here: 5/5 in the IPC tests and 200 stress runs clean on darwin-arm64.

@bavulapati
bavulapati requested a review from a team September 18, 2026 13:11
@bavulapati
bavulapati merged commit 5690f20 into main Sep 18, 2026
12 checks passed
@bavulapati
bavulapati deleted the test-poll-order-before-loop-close branch September 18, 2026 13:59
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.

2 participants