about summary refs log tree commit homepage
path: root/lib/rainbows/epoll.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-08 07:26:55 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-08 07:26:55 +0000
commitec3f871c9a34734b865365a43979a0b459654b05 (patch)
treee40fdaef70e5920984e86b76eba0cd37a3bffe6d /lib/rainbows/epoll.rb
parente64e2e0045d63c4edd291839febba978534be652 (diff)
downloadrainbows-ec3f871c9a34734b865365a43979a0b459654b05.tar.gz
We only poll for one event (EPOLLIN/EPOLLOUT) at a time,
so there's no need to actually check since they're too
rare.
Diffstat (limited to 'lib/rainbows/epoll.rb')
-rw-r--r--lib/rainbows/epoll.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/epoll.rb b/lib/rainbows/epoll.rb
index 893a315..8f3d020 100644
--- a/lib/rainbows/epoll.rb
+++ b/lib/rainbows/epoll.rb
@@ -32,7 +32,7 @@ module Rainbows::Epoll
 
   def self.loop
     begin
-      EP.wait(nil, 1000) { |flags, obj| obj.epoll_run }
+      EP.wait(nil, 1000) { |_, obj| obj.epoll_run }
       while obj = ReRun.shift
         obj.epoll_run
       end