aboutsummaryrefslogtreecommitdiff
path: root/libbutl/filesystem.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-07-07 11:52:40 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-07-07 13:57:02 +0300
commit205c54bf10f4b0fdce64c5dace5c5a86de27d248 (patch)
treeb04d03c2c12a1cfcae60e170e60cbc3d0f4fcacb /libbutl/filesystem.cxx
parentdfb8f3fcca0f8b305eb14d7c60a58967918c5df4 (diff)
On Windows make fdopen() to retry for a second on ERROR_SHARING_VIOLATION error
Diffstat (limited to 'libbutl/filesystem.cxx')
-rw-r--r--libbutl/filesystem.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbutl/filesystem.cxx b/libbutl/filesystem.cxx
index f246214..f145ee7 100644
--- a/libbutl/filesystem.cxx
+++ b/libbutl/filesystem.cxx
@@ -1724,7 +1724,10 @@ namespace butl
// we will keep trying to move the file for a second.
//
// The thinking is that there can be some Windows process analyzing newly
- // created files and so preventing their move or removal.
+ // created files and so preventing their move, removal, or change.
+ //
+ // Note that we address this issue in a similar way in try_rmfile() and
+ // fdopen().
//
DWORD ec;
for (size_t i (0); i < 11; ++i)