mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
prevent crash when all workers are gone
This commit is contained in:
parent
46cb6754c5
commit
8035b4cef4
1 changed files with 1 additions and 1 deletions
|
@ -599,7 +599,7 @@ module Puma
|
|||
end
|
||||
|
||||
def check_workers
|
||||
while true
|
||||
while @workers.any?
|
||||
pid = Process.waitpid(-1, Process::WNOHANG)
|
||||
break unless pid
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue