summaryrefslogtreecommitdiff
path: root/ext/pty/lib/expect.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-18 01:17:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-18 01:17:44 +0000
commit879d41e22c7ef558aba93f93cf16632ba2e03a54 ()
treec09642161c9c6cacb81958f693727a1c59c7d1f4 /ext/pty/lib/expect.rb
parentbcf1e2ac129c7996a88a3129d3aa9a67010cbd84 (diff)
* 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
-rw-r--r--ext/pty/lib/expect.rb2
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ class IO
e_pat = pat
end
while true
- if IO.select([self],nil,nil,timeout).nil? then
result = nil
break
end