1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in: disable fdatasync again on Mac OS X.

[ruby-core:35493][Bug #4500]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-04-03 12:35:29 +00:00
parent 34c46a6766
commit f4755f214c
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Sun Apr 3 21:33:58 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* 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@gmail.com>
* io.c (io_reopen): IO#close releases GVL if possible.

View file

@ -940,6 +940,7 @@ AS_CASE(["$target_os"],
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>

5
io.c
View file

@ -1414,8 +1414,9 @@ rb_io_fsync(VALUE io)
*
* 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