Skip to content

Match Node's fork IPC event order for exit, disconnect and close - #940

Merged
ctate merged 1 commit into
mainfrom
ctate/match-node-s-228441
Oct 13, 2026
Merged

ctate merged 1 commit into
mainfrom
ctate/match-node-s-228441

Conversation

@ctate

@ctate ctate commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator
  • Deliver a forked child's IPC messages and EOF 'disconnect' before its 'exit', and emit 'close' from the channel's EOF the way Node does (no 'close' after a parent-side disconnect()).
  • On kqueue platforms, follow libuv's short-read rule so an EOF behind the last message is observed after the child is reaped, as Node does on macOS.
  • Neutral on bench:runtime; IPC round trips are 0.96× of main.

@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
scriptc Ready Ready Preview, v0 Oct 13, 2026 8:57pm UTC

@ctate
ctate merged commit 1f53d25 into main Oct 13, 2026
90 checks passed
@ctate
ctate deleted the ctate/match-node-s-228441 branch October 13, 2026 21:24

This branch was successfully deployed

1 active deployment
Preview — fcc0f47a Deployed Oct 13, 2026 by vercel[bot]
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