about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-12-28 00:33:10 +0000
committerEric Wong <e@80x24.org>2018-12-28 07:39:30 +0000
commitc8b260b6d4334c47704a1fa365942055508f1074 (patch)
treeec5f1dd87e0349a1d99107ed134d33697d7739d7
parentbd629500a1f4250d7fbeeb027e4aba76bcbc27a5 (diff)
downloadyahns-c8b260b6d4334c47704a1fa365942055508f1074.tar.gz
Golfing to eliminate a constant lookup and inline-constant-cache entry
-rw-r--r--lib/yahns/server_mp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/server_mp.rb b/lib/yahns/server_mp.rb
index c9cd207..7b2f9b7 100644
--- a/lib/yahns/server_mp.rb
+++ b/lib/yahns/server_mp.rb
@@ -159,7 +159,7 @@ module Yahns::ServerMP # :nodoc:
   def mp_sig_handle(watch, alive)
     # not performance critical
     watch.delete_if { |io| io.to_io.closed? }
-    if r = IO.select(watch, nil, nil, alive ? nil : 0.1)
+    if r = select(watch, nil, nil, alive ? nil : 0.1)
       r[0].each(&:yahns_step)
     end
     case @sig_queue.shift