Move to Process.on_interupt

I remember this change was implemented before, I see that it is reverted now and I want that change back because developers on Windows are complaining that it broke their builds.
This commit is contained in:
Giorgi Kavrelishvili 2023-10-11 18:18:48 +04:00 committed by GitHub
parent cb9adcd188
commit ba7cd7e701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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