From 205c54bf10f4b0fdce64c5dace5c5a86de27d248 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 7 Jul 2020 11:52:40 +0300 Subject: On Windows make fdopen() to retry for a second on ERROR_SHARING_VIOLATION error --- libbutl/filesystem.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libbutl/filesystem.cxx') 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) -- cgit v1.1