note
haukex
<p>Whether or not [man://rename;2|rename(2)] will be atomic depends very much on the operating and file systems. Unfortunately [doc://File::Copy]'s <c>move</c> adds another layer of uncertainty, since it doesn't guarantee to use <c>rename</c> under the hood. But then again, when the <c>rename</c> operation <i>is</i> atomic, it's a great way for updating a file with one writer and many readers (multiple writers still need to coordinate). You might be interested in my module [mod://File::Replace].</p>
1214701
1214701