about summary refs log tree commit homepage
path: root/lib/rainbows
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-04 03:23:57 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-04 03:25:27 -0700
commit756c060f2992d35e30249688f1cfab8de9b4dfc1 (patch)
tree5a59f9b5b4ec16835a2320b57282ce447042c2f0 /lib/rainbows
parent4b52a167cfb7ea1d1d663844028dcde2d4536223 (diff)
downloadrainbows-756c060f2992d35e30249688f1cfab8de9b4dfc1.tar.gz
It's usually a bad sign if we have unhandled exceptions in
the listener loops, so we'll exit just in case.
Diffstat (limited to 'lib/rainbows')
-rw-r--r--lib/rainbows/revactor.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows/revactor.rb b/lib/rainbows/revactor.rb
index a0740fa..a20e09a 100644
--- a/lib/rainbows/revactor.rb
+++ b/lib/rainbows/revactor.rb
@@ -102,6 +102,7 @@ module Rainbows
           filter.after(1) do
             if alive
               alive.chmod(nr = 0 == nr ? 1 : 0)
+              listeners.each { |l| alive = false if l.dead? }
               ppid == Process.ppid or alive = false
             end
           end