update Windows spin-loop count for deleting files and directories
original commit: b597e161fcb8c5ebb8f7f8e1aa27b2f136c13064
This commit is contained in:
parent
21043fb950
commit
19b130e41c
2
LOG
2
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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user