aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline/general_io.rb
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2023-08-20 11:40:42 +0100
committergit <svn-admin@ruby-lang.org>2023-08-20 10:40:55 +0000
commit7c226291d344c29236d51c604f885af05e7f1add (patch)
tree08d5181f45cb2cb87010c8ffe49cf5b9d7dde904 /lib/reline/general_io.rb
parent35442005132e60a728b59f0811da10fba95a851e (diff)
downloadruby-7c226291d344c29236d51c604f885af05e7f1add.tar.gz
[ruby/reline] Remove Timeout usage
(https://github.com/ruby/reline/pull/580) Timeout's implementation relies on Thread, which would conflict with `ruby/debug`'s thread-freezing implementation and has casued issues like - ruby/debug#877 - ruby/debug#934 - ruby/debug#1000 This commit avoids the issue by completely removing the use of Timeout. https://github.com/ruby/reline/commit/d4f0cd3fe1
Diffstat (limited to 'lib/reline/general_io.rb')
-rw-r--r--lib/reline/general_io.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/reline/general_io.rb b/lib/reline/general_io.rb
index 9929846568..dd2e87eaf0 100644
--- a/lib/reline/general_io.rb
+++ b/lib/reline/general_io.rb
@@ -1,4 +1,3 @@
-require 'timeout'
require 'io/wait'
class Reline::GeneralIO
@@ -35,7 +34,7 @@ class Reline::GeneralIO
yield
end
- def self.getc
+ def self.getc(_timeout_second)
unless @@buf.empty?
return @@buf.shift
end