about summary refs log tree commit homepage
path: root/lib/dtas
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-01-23 21:00:27 +0000
committerEric Wong <e@80x24.org>2022-01-23 21:03:50 +0000
commiteab2f44b4d02ee5e468a41d50275b6506adf83d6 (patch)
treec91064cc33cd441ffea8b133b8f91107aac536dc /lib/dtas
parent7c433348820908fbf4d723ec1cff605ae5ea06a8 (diff)
downloaddtas-eab2f44b4d02ee5e468a41d50275b6506adf83d6.tar.gz
Since Ruby 2.3, it no longer checks FIONREAD, and we require
Ruby 2.3+ nowadays, so drop our IO.select-based workarounds.
Diffstat (limited to 'lib/dtas')
-rw-r--r--lib/dtas/unix_client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dtas/unix_client.rb b/lib/dtas/unix_client.rb
index 8aa953c..71f833c 100644
--- a/lib/dtas/unix_client.rb
+++ b/lib/dtas/unix_client.rb
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2020 all contributors <dtas-all@nongnu.org>
+# Copyright (C) all contributors <dtas-all@nongnu.org>
 # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 # frozen_string_literal: true
 require_relative '../dtas'
@@ -39,7 +39,7 @@ class DTAS::UNIXClient # :nodoc:
   end
 
   def res_wait(timeout = nil)
-    IO.select([@to_io], nil, nil, timeout)
+    @to_io.wait_readable(timeout)
     nr = @to_io.nread
     nr > 0 or raise EOFError, "unexpected EOF from server"
     @to_io.recv(nr)