Add exponential backoff to rmdir() on Windows

This commit is contained in:
Justine Tunney 2021-01-29 21:46:23 -08:00
parent bf8b1623c8
commit eaca5b3e81
7 changed files with 38 additions and 16 deletions

View file

@ -30,6 +30,5 @@
int touch(const char *file, uint32_t mode) {
int fd;
if ((fd = open(file, O_CREAT | O_WRONLY, mode)) == -1) return -1;
fsync(fd); /* TODO(jart): do we need it? */
return close(fd);
}