Skip to content

Commit

Permalink
merge revision(s) 15531:
Browse files Browse the repository at this point in the history
	* ext/pty/lib/expect.rb (IO#expect): check if peer is closed.
	  [ruby-Bugs-17940]


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Jun 15, 2008
1 parent e1b715d commit 49eea96
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Sun Jun 15 19:22:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>

* ext/pty/lib/expect.rb (IO#expect): check if peer is closed.
[ruby-Bugs-17940]

Sun Jun 15 19:20:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>

* ext/iconv/iconv.c (iconv_convert): check upper bound. a patch from
Expand Down
2 changes: 1 addition & 1 deletion ext/pty/lib/expect.rb
Expand Up @@ -10,7 +10,7 @@ def expect(pat,timeout=9999999)
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
Expand Down
2 changes: 1 addition & 1 deletion version.h
Expand Up @@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2008-06-15"
#define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20080615
#define RUBY_PATCHLEVEL 179
#define RUBY_PATCHLEVEL 180

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
Expand Down

0 comments on commit 49eea96

Please sign in to comment.