Bug #776: File#flush doesn't flush in windows
http://redmine.ruby-lang.org/issues/show/776

Author: Roger Pack
Status: Open, Priority: Normal

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


----------------------------------------
http://redmine.ruby-lang.org