Skip to content

Watch graceful shutdown - #923

Open
bcomnes wants to merge 6 commits into
fastify:mainfrom
bcomnes:fix/watch-graceful-shutdown
Open

bcomnes wants to merge 6 commits into
fastify:mainfrom
bcomnes:fix/watch-graceful-shutdown

Conversation

@bcomnes

@bcomnes bcomnes commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

I noticed that watch mode wasn't waiting for the child process' graceful shutdown when I sent it Ctl-c which was leading me to be confused about weather or not I had a resource leak when killing my dev process. This PR Handles SIGINT and SIGTERM in the watch supervisor so it waits for application child shutdown before exiting. Previously, interrupting watch mode could return the shell prompt while the application was still running asynchronous onClose hooks

Checklist

This branch has not been deployed

No deployments
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