diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-08-24 08:21:56 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-08-24 08:21:56 +0000 |
| commit | aeb066503409062fc8fe8b241e512f5f6aebb128 (patch) | |
| tree | 3d30e530b29103ce2884dff782592ddf7292f4df /ext/pty | |
| parent | 48ed5d640324d7a39120408ce88af1873fc18df3 (diff) | |
| download | ruby-aeb066503409062fc8fe8b241e512f5f6aebb128.tar.gz ruby-aeb066503409062fc8fe8b241e512f5f6aebb128.tar.xz ruby-aeb066503409062fc8fe8b241e512f5f6aebb128.zip | |
1.4.1 to be
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty')
| -rw-r--r-- | ext/pty/script.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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" |
