From 966dee27d01b68283e80ea544c93f9a659145302 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 8 Oct 2009 20:28:00 -0700 Subject: fchmod heartbeat flips between 0/1 This is for compatibility with OpenBSD as reported by Jeremy Evans for Unicorn. --- lib/rainbows/revactor.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/revactor.rb') 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 -- cgit v1.2.3-24-ge0c7