This project is closed and read-only.
Actions
Backport #776
closedFile#flush doesn't flush in windows
Backport #776:
File#flush doesn't flush in windows
Status:
Closed
Assignee:
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