about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn/rainbows.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/unicorn/rainbows.rb b/lib/unicorn/rainbows.rb
index 0f33db7..21ec43b 100644
--- a/lib/unicorn/rainbows.rb
+++ b/lib/unicorn/rainbows.rb
@@ -85,11 +85,12 @@ module Unicorn
         end
       end
 
+      nr = 0
       begin
         Actor.sleep 1
         clients.delete_if { |a| a.dead? }
         if alive
-          alive.chmod(Time.now.to_i)
+          alive.chmod(nr = 0 == nr ? 1 : 0)
           ppid == Process.ppid or alive = false
         end
       end while alive || ! clients.empty?