mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Detect when the jruby daemon child doesn't start properly
This commit is contained in:
parent
ebe5f42dab
commit
86b7d9718d
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,11 @@ module Puma
|
|||
exit
|
||||
end
|
||||
|
||||
Signal.trap "SIGCHLD" do
|
||||
log "! Error starting new process as daemon, exitting"
|
||||
exit 1
|
||||
end
|
||||
|
||||
pid = @cli.jruby_daemon_start
|
||||
sleep
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue