summaryrefslogtreecommitdiff
path: root/ext/pty/shl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pty/shl.rb')
-rw-r--r--ext/pty/shl.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/pty/shl.rb b/ext/pty/shl.rb
index 0c04a27..cdaf8d7 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