diff --git a/lib/puma/launcher.rb b/lib/puma/launcher.rb index ea1c301e26..73129fca40 100644 --- a/lib/puma/launcher.rb +++ b/lib/puma/launcher.rb @@ -398,6 +398,14 @@ def setup_signals log "*** SIGTERM not implemented, signal based gracefully stopping unavailable!" end + begin + Signal.trap "SIGINT" do + stop + end + rescue Exception + log "*** SIGINT not implemented, signal based gracefully stopping unavailable!" + end + begin Signal.trap "SIGHUP" do if @runner.redirected_io?