merge revision(s) 24223:

* io.c (rb_io_flush): fsync() after buffer is flushed on win32.
	  backported from trunk.  [ruby-core:20043]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@24406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2009-08-05 06:30:11 +00:00
parent f66f36d371
commit 66c9241789
3 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,9 @@
Wed Aug 5 15:29:54 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* io.c (rb_io_flush): fsync() after buffer is flushed on win32.
backported from trunk. [ruby-core:20043]
Tue Aug 4 11:00:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* re.h (RMATCH_REGS): added for compatibility.

3
io.c
View file

@ -650,6 +650,9 @@ rb_io_flush(io)
f = GetWriteFile(fptr);
io_fflush(f, fptr);
#ifdef _WIN32
fsync(fileno(f));
#endif
return io;
}

View file

@ -1,15 +1,15 @@
#define RUBY_VERSION "1.8.7"
#define RUBY_RELEASE_DATE "2009-08-04"
#define RUBY_RELEASE_DATE "2009-08-05"
#define RUBY_VERSION_CODE 187
#define RUBY_RELEASE_CODE 20090804
#define RUBY_PATCHLEVEL 194
#define RUBY_RELEASE_CODE 20090805
#define RUBY_PATCHLEVEL 195
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
#define RUBY_VERSION_TEENY 7
#define RUBY_RELEASE_YEAR 2009
#define RUBY_RELEASE_MONTH 8
#define RUBY_RELEASE_DAY 4
#define RUBY_RELEASE_DAY 5
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];