1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Disable USR1 usage on JRuby

This commit is contained in:
Evan Phoenix 2016-03-05 21:44:37 -08:00
parent cf6a09dfc6
commit 75b6bd14a2

View file

@ -361,12 +361,14 @@ module Puma
log "*** SIGUSR2 not implemented, signal based restart unavailable!"
end
begin
Signal.trap "SIGUSR1" do
phased_restart
unless Puma.jruby?
begin
Signal.trap "SIGUSR1" do
phased_restart
end
rescue Exception
log "*** SIGUSR1 not implemented, signal based restart unavailable!"
end
rescue Exception
log "*** SIGUSR1 not implemented, signal based restart unavailable!"
end
begin