Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gracefully shutdown on CTRL+C and SIGTERM on Linux #273

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

internationalcrisis
Copy link

When running on Linux, listen for SIGTERM in addition to CTRL+C.

I am not incredibly competent with Rust and Linux is my daily driver, so please double-check my changes. Regardless, this should behave relatively the same on Linux and Windows, past the "Failed to install CTRL+C signal handler" error not appearing on Linux if redlib fails to install that signal handler.

This also fixes #205.

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.

🐛 Bug Report: Container does not stop using SIGTERM - Podman/Docker resorts to SIGKILL
1 participant