about summary refs log tree commit homepage
path: root/lib/rainbows/xepoll_thread_spawn
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-16 20:05:12 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-16 20:05:12 +0000
commitf9de85b9a35c9f95b390249ea855858c5e4a3ae2 (patch)
tree0626bc1ce9e1a4152b8dd9e460077b2f20eb3bf3 /lib/rainbows/xepoll_thread_spawn
parent49b60d6f67a94560a802c6ff80c16c92093de877 (diff)
downloadrainbows-f9de85b9a35c9f95b390249ea855858c5e4a3ae2.tar.gz
Just close the epoll descriptor, since the sleepy_penguin
epoll_wait wrapper may not return EINTR in the future.
Diffstat (limited to 'lib/rainbows/xepoll_thread_spawn')
-rw-r--r--lib/rainbows/xepoll_thread_spawn/client.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows/xepoll_thread_spawn/client.rb b/lib/rainbows/xepoll_thread_spawn/client.rb
index f8fc191..2ab64d2 100644
--- a/lib/rainbows/xepoll_thread_spawn/client.rb
+++ b/lib/rainbows/xepoll_thread_spawn/client.rb
@@ -26,6 +26,7 @@ module Rainbows::XEpollThreadSpawn::Client
 
   ep = SleepyPenguin::Epoll
   EP = ep.new
+  Rainbows.at_quit { EP.close }
   IN = ep::IN | ep::ET | ep::ONESHOT
   KATO = {}
   KATO.compare_by_identity if KATO.respond_to?(:compare_by_identity)