Skip to content

Commit

Permalink
merge revision(s) 14858:
Browse files Browse the repository at this point in the history
	* io.c (fptr_finalize): clear errno first.  [ruby-talk:284492]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Jun 7, 2008
1 parent f77e42a commit 0942811
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sun Jun 8 06:02:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>

* io.c (fptr_finalize): clear errno first. [ruby-talk:284492]

Sun Jun 8 05:59:36 2008 Tadayoshi Funaba <tadf@dotrb.org>

* lib/date.rb: don't freeze nil even if 1.8 will not be aware of
Expand Down
1 change: 1 addition & 0 deletions io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2008-06-08"
#define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20080608
#define RUBY_PATCHLEVEL 163
#define RUBY_PATCHLEVEL 164

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
Expand Down

0 comments on commit 0942811

Please sign in to comment.