From aeb066503409062fc8fe8b241e512f5f6aebb128 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 24 Aug 1999 08:21:56 +0000 Subject: 1.4.1 to be git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/pty/script.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/pty/script.rb') diff --git a/ext/pty/script.rb b/ext/pty/script.rb index 6aaafec06..308493563 100644 --- a/ext/pty/script.rb +++ b/ext/pty/script.rb @@ -22,11 +22,11 @@ PTY.spawn("/bin/csh") do begin while true - c = r_pty.getc - next if c.nil? - print c.chr + c = r_pty.sysread(512) + break if c.nil? + print c STDOUT.flush - logfile.print c.chr + logfile.print c end rescue # print $@,':',$!,"\n" -- cgit