aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-08-05 14:33:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-08-05 14:33:34 +0200
commit16c8663b5c066a2d1faed294181d07ba284557c5 (patch)
tree32614fbabde90e571b32154f06a2c880ac9730e3
parenteee51fe3a4ed1b822a1c5d79b9a1b653cae59dff (diff)
Increase Windows rm/mv sharing violation retries to 60s for testing
-rw-r--r--libbutl/filesystem.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbutl/filesystem.cxx b/libbutl/filesystem.cxx
index 941be10..19d09d1 100644
--- a/libbutl/filesystem.cxx
+++ b/libbutl/filesystem.cxx
@@ -1087,7 +1087,7 @@ namespace butl
// failure (see mventry() for details). If that's the case, we will keep
// trying to move the file for two seconds.
//
- for (size_t i (0); i < 21; ++i)
+ for (size_t i (0); i < 601; ++i)
{
// Sleep 100 milliseconds before the removal retry.
//
@@ -1096,6 +1096,8 @@ namespace butl
ur = _unlink (f);
+ //@@ Should we check for SHARING_VIOLATION?
+
if (ur != 0 && errno == EACCES)
{
DWORD a (GetFileAttributesA (f));
@@ -1730,7 +1732,7 @@ namespace butl
// fdopen().
//
DWORD ec;
- for (size_t i (0); i < 21; ++i)
+ for (size_t i (0); i < 601; ++i)
{
// Sleep 100 milliseconds before the move retry.
//