diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |