From: Eric Wong Date: Tue, 26 Feb 2013 20:07:30 +0000 (+0000) Subject: xepoll_thread_*/client: EPOLLONESHOT implies EPOLLET X-Git-Tag: v4.5.0~3 X-Git-Url: https://repo.or.cz/w/rainbows.git/commitdiff_plain/552c4ca305092911ca7613de4b1ba310e5481775 xepoll_thread_*/client: EPOLLONESHOT implies EPOLLET No need to specify both flags for epoll (confirmed by reading fs/eventpoll.c in the Linux kernel). --- diff --git a/lib/rainbows/xepoll_thread_pool/client.rb b/lib/rainbows/xepoll_thread_pool/client.rb index 61b0b68..001e69d 100644 --- a/lib/rainbows/xepoll_thread_pool/client.rb +++ b/lib/rainbows/xepoll_thread_pool/client.rb @@ -37,7 +37,7 @@ module Rainbows::XEpollThreadPool::Client ep = SleepyPenguin::Epoll EP = ep.new - IN = ep::IN | ep::ET | ep::ONESHOT + IN = ep::IN | ep::ONESHOT KATO = {} KATO.compare_by_identity if KATO.respond_to?(:compare_by_identity) LOCK = Mutex.new diff --git a/lib/rainbows/xepoll_thread_spawn/client.rb b/lib/rainbows/xepoll_thread_spawn/client.rb index 6c07b92..a3277cf 100644 --- a/lib/rainbows/xepoll_thread_spawn/client.rb +++ b/lib/rainbows/xepoll_thread_spawn/client.rb @@ -26,7 +26,7 @@ module Rainbows::XEpollThreadSpawn::Client ep = SleepyPenguin::Epoll EP = ep.new - IN = ep::IN | ep::ET | ep::ONESHOT + IN = ep::IN | ep::ONESHOT KATO = {} KATO.compare_by_identity if KATO.respond_to?(:compare_by_identity) LOCK = Mutex.new