diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-11 02:02:26 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-11 02:02:26 -0700 |
commit | 7e7de6f43ca9c1e8d8ee2eae56578e31e22082e6 (patch) | |
tree | f52f9b1113ecb31cd61e050171be71c88d858ddf /lib | |
parent | 03b7904f597d80ed7c8e5ae19e2af8d0e0c581ba (diff) | |
download | rainbows-7e7de6f43ca9c1e8d8ee2eae56578e31e22082e6.tar.gz |
Once our listeners get closed, we're as good as dead so we should exit to avoid spinning.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows/revactor.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rainbows/revactor.rb b/lib/rainbows/revactor.rb index 006a3b1..1b954b4 100644 --- a/lib/rainbows/revactor.rb +++ b/lib/rainbows/revactor.rb @@ -97,6 +97,8 @@ module Rainbows clients += 1 root.link(actor) rescue Errno::EAGAIN, Errno::ECONNABORTED + rescue Errno::EBADF + break rescue Object => e listen_loop_error(e) if alive end while alive |