diff options
author | Eric Wong <e@80x24.org> | 2022-01-23 21:00:27 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-01-23 21:03:50 +0000 |
commit | eab2f44b4d02ee5e468a41d50275b6506adf83d6 (patch) | |
tree | c91064cc33cd441ffea8b133b8f91107aac536dc /lib/dtas | |
parent | 7c433348820908fbf4d723ec1cff605ae5ea06a8 (diff) | |
download | dtas-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.rb | 4 |
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) |