diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 6e2bd59f05..ad67e18745 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -239,21 +239,10 @@ def set_signal_handlers @old_trap.call if @old_trap.respond_to?(:call) end } - begin - @old_tstp_trap = Signal.trap('TSTP') { - Reline::IOGate.ungetc("\C-z".ord) - @old_tstp_trap.call if @old_tstp_trap.respond_to?(:call) - } - rescue ArgumentError - end end def finalize Signal.trap('INT', @old_trap) - begin - Signal.trap('TSTP', @old_tstp_trap) - rescue ArgumentError - end end def eof?