summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xos/windows/posix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/os/windows/posix.c b/os/windows/posix.c
index 24517729..11500e48 100755
--- a/os/windows/posix.c
+++ b/os/windows/posix.c
@@ -411,6 +411,9 @@ int posix_fallocate(int fd, off_t offset, off_t len)
break;
}
+ /* Don't allow Windows to cache the write: flush it to disk */
+ _commit(fd);
+
bytes_remaining -= bytes_written;
}