[前][次][番号順一覧][スレッド一覧]

ruby-changes:33179

From: usa <ko1@a...>
Date: Mon, 3 Mar 2014 04:41:05 +0900 (JST)
Subject: [ruby-changes:33179] usa:r45258 (trunk): * io.c (rb_io_fsync): need to fsync even if on Windows. fixed mistake of

usa	2014-03-03 04:41:01 +0900 (Mon, 03 Mar 2014)

  New Revision: 45258

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45258

  Log:
    * io.c (rb_io_fsync): need to fsync even if on Windows.  fixed mistake of
      r45254 and r45256.

  Modified files:
    trunk/ChangeLog
    trunk/io.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45257)
+++ ChangeLog	(revision 45258)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Mar  3 04:37:50 2014  NAKAMURA Usaku  <usa@r...>
+
+	* io.c (rb_io_fsync): need to fsync even if on Windows.  fixed mistake
+	  of r45254 and r45256.
+
 Mon Mar  3 04:21:34 2014  NAKAMURA Usaku  <usa@r...>
 
 	* test/win32ole: get rid of warnings (unused variable).
Index: io.c
===================================================================
--- io.c	(revision 45257)
+++ io.c	(revision 45258)
@@ -1925,10 +1925,8 @@ rb_io_fsync(VALUE io) https://github.com/ruby/ruby/blob/trunk/io.c#L1925
 
     if (io_fflush(fptr) < 0)
         rb_sys_fail(0);
-# ifndef _WIN32
     if ((int)rb_thread_io_blocking_region(nogvl_fsync, fptr, fptr->fd) < 0)
 	rb_sys_fail_path(fptr->pathv);
-# endif
     return INT2FIX(0);
 }
 #else

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]