1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/pty/lib/expect.rb (IO#expect): check if peer is closed.

[ruby-Bugs-17940]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-02-18 01:17:44 +00:00
parent bcf1e2ac12
commit 879d41e22c
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Feb 18 10:17:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/pty/lib/expect.rb (IO#expect): check if peer is closed.
[ruby-Bugs-17940]
Mon Feb 18 00:33:03 2008 Tanaka Akira <akr@fsij.org>
* re.c (rb_reg_regsub): don't repeat repl twice with

View file

@ -10,7 +10,7 @@ class IO
e_pat = pat
end
while true
if IO.select([self],nil,nil,timeout).nil? then
if !IO.select([self],nil,nil,timeout) or eof? then
result = nil
break
end