From 19b130e41cf3eecc5e57b08f605e59d67998d352 Mon Sep 17 00:00:00 2001 From: Bob Burger Date: Tue, 26 Mar 2019 14:16:54 -0400 Subject: [PATCH] update Windows spin-loop count for deleting files and directories original commit: b597e161fcb8c5ebb8f7f8e1aa27b2f136c13064 --- LOG | 2 ++ c/windows.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/LOG b/LOG index 9855bef2a8..73c3349d87 100644 --- a/LOG +++ b/LOG @@ -1245,3 +1245,5 @@ wininstall/ti3nt.wxs - fixed welcome text and copyright year in macOS package newrelease pkg/Makefile release_notes.stex +- update Windows spin-loop count for deleting files and directories + windows.c diff --git a/c/windows.c b/c/windows.c index 53c4b2c9d8..1dac846529 100644 --- a/c/windows.c +++ b/c/windows.c @@ -386,7 +386,7 @@ int S_windows_rmdir(const char *pathname) { if (!(rc = _wrmdir(wpathname))) { // Spin loop until Windows deletes the directory. int n; - for (n = 100; n > 0; n--) { + for (n = 1000; n > 0; n--) { if (_wrmdir(wpathname) && (errno == ENOENT)) break; } return 0; @@ -420,7 +420,7 @@ int S_windows_unlink(const char *pathname) { if (!(rc = _wunlink(wpathname))) { // Spin loop until Windows deletes the file. int n; - for (n = 100; n > 0; n--) { + for (n = 1000; n > 0; n--) { if (_wunlink(wpathname) && (errno == ENOENT)) break; } return 0;