diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-07 21:01:48 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-07 21:01:48 +0000 |
commit | f161d2b7a68aa42add7fc3e262a644fb739421b2 (patch) | |
tree | e35032e7b4f1e7e3bd165ff18698b4cad95afd12 | |
parent | cf4fa0f0454058a2948d0ca517c6dce55e826043 (diff) |
merge revision(s) 14858:
* io.c (fptr_finalize): clear errno first. [ruby-talk:284492]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 1 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sun Jun 8 06:01:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (fptr_finalize): clear errno first. [ruby-talk:284492] + Sun Jun 8 05:53:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * configure.in (TIMEZONE_VOID): check whether timezone requires zero @@ -2169,6 +2169,7 @@ fptr_finalize(fptr, noraise) { int n1 = 0, n2 = 0, f1, f2 = -1; + errno = 0; if (fptr->f2) { f2 = fileno(fptr->f2); while (n2 = 0, fflush(fptr->f2) < 0) { @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-08" #define RUBY_VERSION_CODE 185 #define RUBY_RELEASE_CODE 20080608 -#define RUBY_PATCHLEVEL 162 +#define RUBY_PATCHLEVEL 163 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |