From ec3f871c9a34734b865365a43979a0b459654b05 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 8 May 2011 07:26:55 +0000 Subject: epoll_wait: flags argument is unused We only poll for one event (EPOLLIN/EPOLLOUT) at a time, so there's no need to actually check since they're too rare. --- lib/rainbows/epoll.rb | 2 +- lib/rainbows/xepoll_thread_spawn/client.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rainbows') 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 diff --git a/lib/rainbows/xepoll_thread_spawn/client.rb b/lib/rainbows/xepoll_thread_spawn/client.rb index 72031eb..118836b 100644 --- a/lib/rainbows/xepoll_thread_spawn/client.rb +++ b/lib/rainbows/xepoll_thread_spawn/client.rb @@ -43,7 +43,7 @@ module Rainbows::XEpollThreadSpawn::Client def self.loop buf = "" begin - EP.wait(nil, 1000) { |fl, obj| obj.epoll_run(buf) } + EP.wait(nil, 1000) { |_, obj| obj.epoll_run(buf) } expire rescue Errno::EINTR rescue => e -- cgit v1.2.3-24-ge0c7