Project

General

Profile

This project is closed and read-only.

Actions

Backport #776

closed

File#flush doesn't flush in windows

Backport #776: File#flush doesn't flush in windows

Added by rogerdpack (Roger Pack) almost 18 years ago. Updated over 15 years ago.


Description

=begin
In windows, File#flush flushes ruby's internal buffers, however, the result is different from Linux.
I'd recommend adding an arbitrary fsync if you're in windows to ensure the buffers are actually flushed, to avoid unexpected cross platform bugs [such as one that attachment_fu has].
[ruby-core:19940]
This in 1.9/1.8.x
Thanks!
-=Roger
=end

Actions

Also available in: PDF Atom