From e1c40b19672f4deef8d153dd2df81f9ecea4fd84 Mon Sep 17 00:00:00 2001 From: usa Date: Sun, 2 Mar 2014 18:08:04 +0000 Subject: * io.c (rb_io_fsync): revert a part of r45254. explicit fsync should update the metadata. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index 5abf1e241d..8d78d17e05 100644 --- a/io.c +++ b/io.c @@ -1925,6 +1925,10 @@ rb_io_fsync(VALUE io) 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 -- cgit v1.2.3