about summary refs log tree commit homepage
path: root/lib/rainbows/revactor.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-08 20:28:00 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-08 20:28:00 -0700
commit966dee27d01b68283e80ea544c93f9a659145302 (patch)
tree9a30b3c27887276ca72fc21d1d00c77189b12325 /lib/rainbows/revactor.rb
parentcc50dcc4918c82cee17d9715ec4bf2d588938042 (diff)
downloadrainbows-966dee27d01b68283e80ea544c93f9a659145302.tar.gz
This is for compatibility with OpenBSD as reported
by Jeremy Evans for Unicorn.
Diffstat (limited to 'lib/rainbows/revactor.rb')
-rw-r--r--lib/rainbows/revactor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/revactor.rb b/lib/rainbows/revactor.rb
index 52cebf8..3375652 100644
--- a/lib/rainbows/revactor.rb
+++ b/lib/rainbows/revactor.rb
@@ -110,12 +110,12 @@ module Rainbows
         end
       end
 
-      nr = 0
+      m = 0
       begin
         Actor.receive do |filter|
           filter.after(1) do
             if alive
-              alive.chmod(nr = 0 == nr ? 1 : 0)
+              alive.chmod(m = 0 == m ? 1 : 0)
               listeners.each { |l| alive = false if l.dead? }
               ppid == Process.ppid or alive = false
             end