Skip to content

Commit

Permalink
Move to Process.on_interupt (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
grkek authored Jan 23, 2024
1 parent 13fd4f8 commit 0de0e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kemal.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0de0e99

Please sign in to comment.