From: Roger Pack Date: 2008-11-23T12:13:53+09:00 Subject: [ruby-core:20043] [Bug #776] File#flush doesn't flush in windows 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