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

feat: shut down gracefully with ctrl+c #1364

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

simonsan
Copy link
Contributor

@simonsan simonsan commented Nov 23, 2024

If you have a long-running process, like webdav or backup or others, pressing CTRL+C usually results in a non-zero exit code:

process didn't exit successfully: P:\CARGO.cargo-target-win\debug\rustic.exe -P webdav (exit code: 0xc000013a, STATUS_CONTROL_C_EXIT)

This shouldn't be the case, as it was user initiated and we can shut down gracefully.

This PR add this functionality, so CTRL+C shuts down rustic gracefully and exits with a 0 exit-code.

@simonsan simonsan added C-enhancement Category: New feature or request A-ui-ux Area: Related to user interfaces and user experience S-waiting-for-review Status: PRs waiting for review labels Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ui-ux Area: Related to user interfaces and user experience C-enhancement Category: New feature or request S-waiting-for-review Status: PRs waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant