]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: use RENAME_NOREPLACE on Linux 3.15+
authorEric Wong <e@80x24.org>
Thu, 21 Oct 2021 21:10:32 +0000 (21:10 +0000)
committerEric Wong <e@80x24.org>
Fri, 22 Oct 2021 00:54:51 +0000 (00:54 +0000)
One syscall is better than two for atomicity in Maildirs.  This
means there's no window where another process can see both the
old and new file at the same time (link && unlink), nor a window
where we might inadvertantly clobber an existing file if we were
to do `stat && rename'.


No differences found