diff options
Diffstat (limited to 'ext/pty/shl.rb')
-rw-r--r-- | ext/pty/shl.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/pty/shl.rb b/ext/pty/shl.rb index 0c04a2735c..cdaf8d7398 100644 --- a/ext/pty/shl.rb +++ b/ext/pty/shl.rb @@ -18,9 +18,7 @@ $r_pty = nil $w_pty = nil def writer - PTY.protect_signal do - system "stty -echo raw" - end + system "stty -echo raw" begin while true c = STDIN.getc @@ -35,9 +33,7 @@ def writer $reader.raise(nil) return 'Exit' ensure - PTY.protect_signal do - system "stty echo -raw" - end + system "stty echo -raw" end end |