From 1da4e3b919e99e6128ab017f215a909304dd6743 Mon Sep 17 00:00:00 2001 From: wyhaines Date: Mon, 24 May 2010 19:08:08 +0000 Subject: Backport #776 [ruby-core:20043]; Added an #ifdef _WIN32 to rb_io_flush in io.c to fsync on windows to ensure that a flush took place. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@28003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index dc06d1062e..bb5ea9fa82 100644 --- a/io.c +++ b/io.c @@ -643,7 +643,9 @@ rb_io_flush(io) f = GetWriteFile(fptr); io_fflush(f, fptr); - +#ifdef _WIN32 + fsync(fileno(f)); +#endif return io; } -- cgit v1.2.3