about summary refs log tree commit homepage
path: root/lib/rainbows/thread_pool.rb
diff options
Diffstat (limited to 'lib/rainbows/thread_pool.rb')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/thread_pool.rb b/lib/rainbows/thread_pool.rb
index f6420ae..f243dc5 100644
--- a/lib/rainbows/thread_pool.rb
+++ b/lib/rainbows/thread_pool.rb
@@ -54,7 +54,7 @@ module Rainbows::ThreadPool
       # all working off the same socket could be a thundering herd
       # problem.  On the other hand, a thundering herd may not
       # even incur as much overhead as an extra Mutex#synchronize
-      ret = IO.select(LISTENERS, nil, nil, 1) and ret[0].each do |s|
+      ret = select(LISTENERS) and ret[0].each do |s|
         s = s.kgio_tryaccept and process_client(s)
     rescue Errno::EINTR