1
0
Fork 0
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:
Wijnand Wiersma 2013-02-07 21:08:54 +01:00
parent 46cb6754c5
commit 8035b4cef4

View file

@ -599,7 +599,7 @@ module Puma
end
def check_workers
while true
while @workers.any?
pid = Process.waitpid(-1, Process::WNOHANG)
break unless pid