movabletype/movabletype — pull request #19 by matsuu (2013-09-09 08:07:12+00:00)
Title: Fixed WeblogPublisher publishing 0-byte files in race condition.

There is some possibility of publishing 0-bytes files in race condition because
file handler is closed before rename from temp_file to file.

I propose to move temporary handling from MT::WeblogPublisher to MT::FileMgr::Local.