Move to Process.on_interupt (#666)

This commit is contained in:
Giorgi Kavrelishvili 2024-01-23 20:07:39 +04:00 committed by GitHub
parent 13fd4f8b2f
commit 0de0e990e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,7 +89,7 @@ module Kemal
end
private def self.setup_trap_signal
Signal::INT.trap do
Process.on_interrupt do
log "#{Kemal.config.app_name} is going to take a rest!" if Kemal.config.shutdown_message
Kemal.stop
exit