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 /io.c | |
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
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -652,6 +652,9 @@ rb_io_flush(io) f = GetWriteFile(fptr); io_fflush(f, fptr); +#ifdef _WIN32 + fsync(fileno(f)); +#endif return io; } |