1
0
Fork 0
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:
Evan Phoenix 2013-08-08 15:48:50 -07:00
parent aacf8ad0d0
commit 6f7fea49df

View file

@ -52,7 +52,11 @@ module Puma
Signal.trap "SIGUSR2" do Signal.trap "SIGUSR2" do
log "* Started new process #{pid} as daemon..." 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 end
Signal.trap "SIGCHLD" do Signal.trap "SIGCHLD" do