ruby-changes:16054
From: wyhaines <ko1@a...>
Date: Tue, 25 May 2010 04:09:11 +0900 (JST)
Subject: [ruby-changes:16054] Ruby:r28003 (ruby_1_8_6): Backport #776 ; Added an #ifdef _WIN32 to rb_io_flush in io.c to fsync on windows to ensure that a flush took place.
wyhaines 2010-05-25 04:08:08 +0900 (Tue, 25 May 2010) New Revision: 28003 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28003 Log: 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. Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/io.c branches/ruby_1_8_6/version.h Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 28002) +++ ruby_1_8_6/ChangeLog (revision 28003) @@ -1,12 +1,18 @@ -Mon May 24 06:26:00 2010 Kirk haines <khaines@r...> +Mon May 25 06:59:00 2010 Kirk Haines <khaines@r...> - * ext/openssl/ossl_config.c: Backport #484 [ruby-core:18377]; OpenSSL::Config now freezes correctly, preventing further modification. + * ChangeLog: Changed dates on the last commit records, because I didn't shift the day when I shifted timezones to JST. -Mon May 24 05:25:00 2010 Kirk haines <khaines@r...> + * io.c: Backport #776 [ruby-core:20043]; added an ifdef _#WIN32 to rb_io_flush to do an fsync on windows. +Mon May 25 06:26:00 2010 Kirk haines <khaines@r...> + + * ext/openssl/ossl_config.c: Backport #484 [ruby-core:18377]; OpenSSL::Config now freezes correctly, preventing further modification. r28002 + +Mon May 25 05:25:00 2010 Kirk haines <khaines@r...> + * lib/fileutils.rb: Backport #1700 [ruby-core:24078]; stringify group argument in #fu_get_gid before making regexp match. r28001 -Mon May 24 05:15:00 2010 Kirk Haines <khaines@r...> +Mon May 25 05:15:00 2010 Kirk Haines <khaines@r...> * configure.in: Bug #2553 [ruby-core:27380]; Add a --disable-ucontext option, for use with --enable-pthreads, to avoid performance loss from --enable-pthreads and the oodles of sigprocmask calls that normally brings. r27999 Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 28002) +++ ruby_1_8_6/version.h (revision 28003) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2010-05-25" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20100525 -#define RUBY_PATCHLEVEL 401 +#define RUBY_PATCHLEVEL 402 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_6/io.c =================================================================== --- ruby_1_8_6/io.c (revision 28002) +++ ruby_1_8_6/io.c (revision 28003) @@ -643,7 +643,9 @@ f = GetWriteFile(fptr); io_fflush(f, fptr); - +#ifdef _WIN32 + fsync(fileno(f)); +#endif return io; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/