update Windows spin-loop count for deleting files and directories

original commit: b597e161fcb8c5ebb8f7f8e1aa27b2f136c13064
This commit is contained in:
Bob Burger 2019-03-26 14:16:54 -04:00
parent 21043fb950
commit 19b130e41c
2 changed files with 4 additions and 2 deletions

2
LOG
View File

@ -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

View File

@ -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;