mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Fix pidfile creation/deletion race on jruby daemonization
This commit is contained in:
parent
aacf8ad0d0
commit
6f7fea49df
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,11 @@ module Puma
|
|||
|
||||
Signal.trap "SIGUSR2" do
|
||||
log "* Started new process #{pid} as daemon..."
|
||||
exit
|
||||
|
||||
# Must use exit! so we don't unwind and run the ensures
|
||||
# that will be run by the new child (such as deleting the
|
||||
# pidfile)
|
||||
exit!
|
||||
end
|
||||
|
||||
Signal.trap "SIGCHLD" do
|
||||
|
|
Loading…
Add table
Reference in a new issue