Handle CTRL-C gracefully #20
Labels
No Label
art
big
blocked
bug
ci-cd
crash report
disputed
documentation
duplicate
feature request
good first issue
packaging
question
security
techdebt spring cleaning
testing
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Projects/mysqladm-rs#20
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We are currently not doing any signal handling, and it's unclear what happens with a database operation if a user were to interrupt it. We should explicitly handle SIGINT and ensure any database operations are shut down gracefully.
We might need to wrap the mysql connection in an
Arc<Mutex<_>>
for the signal checking thread to close it safely. Not sure how to handle this when the entire operation is wrapped in a transaction