From 0de0e990e9db7f1c930b7e43ac2aa5bd23aed07e Mon Sep 17 00:00:00 2001 From: Giorgi Kavrelishvili Date: Tue, 23 Jan 2024 20:07:39 +0400 Subject: [PATCH] Move to Process.on_interupt (#666) --- src/kemal.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kemal.cr b/src/kemal.cr index 5d43f15..843f89e 100644 --- a/src/kemal.cr +++ b/src/kemal.cr @@ -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