about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-02-26 20:07:30 +0000
committerEric Wong <normalperson@yhbt.net>2013-02-26 20:07:30 +0000
commit552c4ca305092911ca7613de4b1ba310e5481775 (patch)
tree097f289ef03c2a26549e752119b5b7f94d63611d /lib
parent81e555569fc254ed9d592c8734695b22d4f9bc12 (diff)
downloadrainbows-552c4ca305092911ca7613de4b1ba310e5481775.tar.gz
No need to specify both flags for epoll (confirmed by reading
fs/eventpoll.c in the Linux kernel).
Diffstat (limited to 'lib')
-rw-r--r--lib/rainbows/xepoll_thread_pool/client.rb2
-rw-r--r--lib/rainbows/xepoll_thread_spawn/client.rb2
2 files changed, 2 insertions, 2 deletions
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