Skip to content

Commit

Permalink
Move to Process.on_interupt
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
grkek authored Oct 11, 2023
1 parent cb9adcd commit ba7cd7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kemal.cr
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ module Kemal
end

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
Kemal.stop
exit
end
}
end
end

0 comments on commit ba7cd7e

Please sign in to comment.