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:
parent
cf6a09dfc6
commit
75b6bd14a2
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue