diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-16 20:05:12 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-16 20:05:12 +0000 |
commit | f9de85b9a35c9f95b390249ea855858c5e4a3ae2 (patch) | |
tree | 0626bc1ce9e1a4152b8dd9e460077b2f20eb3bf3 /lib/rainbows/epoll.rb | |
parent | 49b60d6f67a94560a802c6ff80c16c92093de877 (diff) | |
download | rainbows-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/epoll.rb')
-rw-r--r-- | lib/rainbows/epoll.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows/epoll.rb b/lib/rainbows/epoll.rb index 8f3d020..3a23d51 100644 --- a/lib/rainbows/epoll.rb +++ b/lib/rainbows/epoll.rb @@ -46,6 +46,7 @@ module Rainbows::Epoll def init_worker_process(worker) super Rainbows::Epoll.const_set :EP, SleepyPenguin::Epoll.new + Rainbows.at_quit { Rainbows::Epoll::EP.close } Rainbows::Client.__send__ :include, Client end |