mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 12:18:31 +00:00
Add exponential backoff to rmdir() on Windows
This commit is contained in:
parent
bf8b1623c8
commit
eaca5b3e81
7 changed files with 38 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue