diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-21 10:40:47 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-21 10:40:47 +0000 |
| commit | 72121b1681423f01d21efac28012277072fd8da4 (patch) | |
| tree | 81502992b25617015e0105da43c351675343223d | |
| parent | 1031c207140cd3d3a02305539f128f044e2e006b (diff) | |
* 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@24223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | io.c | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Tue Jul 21 19:34:56 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] + + Sun Jul 19 14:03:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * configure.in (DEPRECATED): backported from trunk. @@ -652,6 +652,9 @@ rb_io_flush(io) f = GetWriteFile(fptr); io_fflush(f, fptr); +#ifdef _WIN32 + fsync(fileno(f)); +#endif return io; } |
