diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-04 03:23:57 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-04 03:25:27 -0700 |
commit | 756c060f2992d35e30249688f1cfab8de9b4dfc1 (patch) | |
tree | 5a59f9b5b4ec16835a2320b57282ce447042c2f0 | |
parent | 4b52a167cfb7ea1d1d663844028dcde2d4536223 (diff) | |
download | rainbows-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.
-rw-r--r-- | lib/rainbows/revactor.rb | 1 |
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 |