Skip to content

Handle shutdown at the daemon readiness boundary - #16

Merged
jbwinters merged 1 commit into
mainfrom
fix/daemon-startup-shutdown
Nov 6, 2026
Merged

jbwinters merged 1 commit into
mainfrom
fix/daemon-startup-shutdown

Conversation

@jbwinters

Copy link
Copy Markdown
Contributor

A caller can observe running state and send SIGTERM before the daemon CLI finishes startup. Install the shutdown handlers before start() publishes readiness, and remove them if startup fails. stop() already waits for startup before draining work and releasing ownership. Add a child-process regression that holds start() after publishing readiness and requires clean exit, stopped state and successor ownership. Typecheck/build and focused ownership checks passed. Packages alpha.8 for the corrected runtime; CI remains required.

@jbwinters
jbwinters merged commit b44a11b into main Nov 6, 2026
6 checks passed
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