Skip to content

Commit

Permalink
update Windows spin-loop count for deleting files and directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Burger committed Mar 26, 2019
1 parent 3007652 commit b597e16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions LOG
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions c/windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b597e16

Please sign in to comment.