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

ruby-changes:19193

From: kosaki <ko1@a...>
Date: Sun, 3 Apr 2011 21:35:36 +0900 (JST)
Subject: [ruby-changes:19193] Ruby:r31232 (trunk): * configure.in: disable fdatasync again on Mac OS X.

kosaki	2011-04-03 21:35:29 +0900 (Sun, 03 Apr 2011)

  New Revision: 31232

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

  Log:
    * configure.in: disable fdatasync again on Mac OS X.
      [ruby-core:35493][Bug #4500]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/io.c

Index: configure.in
===================================================================
--- configure.in	(revision 31231)
+++ configure.in	(revision 31232)
@@ -940,6 +940,7 @@
 		fi
 		ac_cv_type_getgroups=gid_t # getgroups() on Rosetta fills garbage
 		ac_cv_lib_crypt_crypt=no
+		ac_cv_func_fdatasync=no # Mac OS X wrongly reports it has fdatasync()
                 AC_CACHE_CHECK(for broken crypt with 8bit chars, rb_cv_broken_crypt,
                     [AC_TRY_RUN([
 #include <stdio.h>
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31231)
+++ ChangeLog	(revision 31232)
@@ -1,3 +1,8 @@
+Sun Apr  3 21:33:58 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* configure.in: disable fdatasync again on Mac OS X.
+	  [ruby-core:35493][Bug #4500]
+
 Sun Apr  3 21:16:20 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* io.c (io_reopen): IO#close releases GVL if possible.
Index: io.c
===================================================================
--- io.c	(revision 31231)
+++ io.c	(revision 31232)
@@ -1414,8 +1414,9 @@
  *
  *  Immediately writes all buffered data in <em>ios</em> to disk.
  *
- *  <code>NotImplementedError</code> is raised
- *  if the underlying operating system does not support <em>fdatasync(2)</em>.
+ *  If the underlying operating system does not support <em>fdatasync(2)</em>,
+ *  <code>IO#fsync</code> is called instead (which might raise a
+ *  <code>NotImplementedError</code>).
  */
 
 static VALUE

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

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