diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-03 02:29:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-03 02:29:04 +0000 |
commit | bf89a51315824d3563adbe478865ab47a8f33113 (patch) | |
tree | f392b01aaeeb8244ac2a57e4a75a30e021ec2f57 | |
parent | 3a215c9110acabd3f5673fc595f653f757d1d459 (diff) |
* io.c (fptr_finalize): clear errno first. [ruby-talk:284492]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 1 | ||||
-rw-r--r-- | version.h | 6 |
3 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Thu Jan 3 11:28:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (fptr_finalize): clear errno first. [ruby-talk:284492] + Wed Jan 2 10:18:56 2008 Tadayoshi Funaba <tadf@dotrb.org> * sample/time.rb: use Process.times instead of Time.times. @@ -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) { @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.8.6" -#define RUBY_RELEASE_DATE "2008-01-02" +#define RUBY_RELEASE_DATE "2008-01-03" #define RUBY_VERSION_CODE 186 -#define RUBY_RELEASE_CODE 20080102 +#define RUBY_RELEASE_CODE 20080103 #define RUBY_PATCHLEVEL 5000 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 6 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 1 -#define RUBY_RELEASE_DAY 2 +#define RUBY_RELEASE_DAY 3 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |