Handle CTRL-C gracefully #20

Open
opened 2024-08-06 01:27:03 +02:00 by oysteikt · 1 comment
Owner

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 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.
oysteikt added the
feature request
label 2024-08-06 01:27:03 +02:00
Author
Owner

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

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
Sign in to join this conversation.
No description provided.