ruby-changes:67647
From: aycabta <ko1@a...>
Date: Tue, 7 Sep 2021 02:42:54 +0900 (JST)
Subject: [ruby-changes:67647] cec50ec8d6 (master): [ruby/reline] Remove SIG prefix because don't use it in any other signal processing
https://git.ruby-lang.org/ruby.git/commit/?id=cec50ec8d6 From cec50ec8d664c39e8858de8f3a50ccbc99ce7511 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Tue, 7 Sep 2021 02:28:33 +0900 Subject: [ruby/reline] Remove SIG prefix because don't use it in any other signal processing https://github.com/ruby/reline/commit/37648042e8 --- lib/reline/line_editor.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index fcd348b..fc48cd0 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -217,9 +217,9 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L217 end def finalize - Signal.trap('SIGINT', @old_trap) + Signal.trap('INT', @old_trap) begin - Signal.trap('SIGTSTP', @old_tstp_trap) + Signal.trap('TSTP', @old_tstp_trap) rescue ArgumentError end end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/