Skip to content

Add ctrl+c twice support with shutdown hook panic recovery#473

Closed
codefromthecrypt wants to merge 2 commits into
masterfrom
ctrl-c-twice-fix
Closed

Add ctrl+c twice support with shutdown hook panic recovery#473
codefromthecrypt wants to merge 2 commits into
masterfrom
ctrl-c-twice-fix

Conversation

@codefromthecrypt
Copy link
Copy Markdown
Collaborator

This implements ctrl+c twice functionality where the first interrupt starts graceful shutdown and any subsequent interrupt forces immediate exit via os.Exit(1).

The implementation handles normal shutdown scenarios gracefully. The known limitation on Darwin (envoy orphaning on SIGKILL) is documented and tested.

Fixes #456

This implements ctrl+c twice functionality where the first interrupt
starts graceful shutdown and any subsequent interrupt forces immediate
exit via os.Exit(1).

The implementation handles normal shutdown scenarios gracefully. The
known limitation on Darwin (envoy orphaning on SIGKILL) is documented
and tested.

Fixes #456

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Signed-off-by: Adrian Cole <adrian@tetrate.io>
@codefromthecrypt codefromthecrypt marked this pull request as draft July 19, 2025 00:25
@codefromthecrypt
Copy link
Copy Markdown
Collaborator Author

incomplete.. there's a flake

@codefromthecrypt
Copy link
Copy Markdown
Collaborator Author

"when in a hole, stop digging" I'm closing this out to delete the concept of shutdown hooks

@mathetake mathetake deleted the ctrl-c-twice-fix branch July 19, 2025 01:32
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