From abb3f7e057bd5fb0aa97cae1410ce2f55ba12b9c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 27 Dec 2010 03:01:47 +0000 Subject: fiber/base: use bare "select" where possible Less visual noise --- lib/rainbows/fiber/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/fiber') diff --git a/lib/rainbows/fiber/base.rb b/lib/rainbows/fiber/base.rb index 69bf5d9..ccfda96 100644 --- a/lib/rainbows/fiber/base.rb +++ b/lib/rainbows/fiber/base.rb @@ -22,7 +22,7 @@ module Rainbows::Fiber::Base G.tick RD.compact.each { |c| c.f.resume } # attempt to time out idle clients t = schedule_sleepers - Kernel.select(RD.compact.concat(LISTENERS), WR.compact, nil, t) or return + select(RD.compact.concat(LISTENERS), WR.compact, nil, t) or return rescue Errno::EINTR retry rescue Errno::EBADF, TypeError -- cgit v1.2.3-24-ge0c7