diff options
author | Stan Lo <stan001212@gmail.com> | 2023-08-20 11:40:42 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-20 10:40:55 +0000 |
commit | 7c226291d344c29236d51c604f885af05e7f1add (patch) | |
tree | 08d5181f45cb2cb87010c8ffe49cf5b9d7dde904 /lib/reline/general_io.rb | |
parent | 35442005132e60a728b59f0811da10fba95a851e (diff) | |
download | ruby-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.rb | 3 |
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 |