diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-08 20:28:00 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-08 20:28:00 -0700 |
commit | 966dee27d01b68283e80ea544c93f9a659145302 (patch) | |
tree | 9a30b3c27887276ca72fc21d1d00c77189b12325 /lib/rainbows/revactor.rb | |
parent | cc50dcc4918c82cee17d9715ec4bf2d588938042 (diff) | |
download | rainbows-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.rb | 4 |
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 |