Closed vlvicente closed 1 year ago
I would guess actix does something funky here. I am not sure how well this crate works in async context. If you can provide a full example with actix in it, I can try to figure out what is going on.
Closed as stale.
Trying to use the crate I manage to set a handler with some clean up code. When a signal is caught, the handler is indeed executed, but it's killed half way before it can finish (no panic or untreated errors are being generated in the handler function). The behavior occurs with both cargo run and through systemctl commands. Any ideas why this is happening? The code looks like this:
Now, I dont actually have a necessity for the atomic since I'm not checking the condition in a busy loop, instead I'm blocking my future (Actix web server) with await after setting the handler. As I said, the handler is indeed called, but it never finish the execution of its instructions. Any ideas?