Dear unicorns,

I was trying to register some code with `at_exit`, so that it would
execute when my app processes terminated, but I found out that it was
being run only for the main unicorn process, not the workers, as those
are terminated with `exit!` (note the !):

https://yhbt.net/unicorn.git/tree/lib/unicorn/http_server.rb?h=v6.0.0#n675

Would you mind me asking why you decided to go with `exit!` instead of
plain `exit`, and what would be the correct way of executing code on
worker termination?

Thank you!
Best regards,

-- 
pudiva chip líquida

Reply via email to