From ba9a22b6926db058199d44a626b923376c8a850f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Feb 2011 22:38:31 +0000 Subject: epoll: handle EINTR properly in Ruby-space We can't work around it effectively in the C extension itself. This requires the latest sleepy_penguin gem. --- lib/rainbows/epoll.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/rainbows/epoll.rb') diff --git a/lib/rainbows/epoll.rb b/lib/rainbows/epoll.rb index 54d08fb..c8c013e 100644 --- a/lib/rainbows/epoll.rb +++ b/lib/rainbows/epoll.rb @@ -12,15 +12,9 @@ module Rainbows::Epoll autoload :ResponsePipe, 'rainbows/epoll/response_pipe' autoload :ResponseChunkPipe, 'rainbows/epoll/response_chunk_pipe' - def self.quit! - Rainbows.quit! - EP.close unless EP.closed? - end - def init_worker_process(worker) super Rainbows::Epoll.const_set :EP, SleepyPenguin::Epoll.new - trap(:QUIT) { Rainbows::Epoll.quit! } Rainbows::Client.__send__ :include, Client end -- cgit v1.2.3-24-ge0c7