mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
sync: Windows implementation of sync() call.
Replace calls to sync() with calls to sync_disks() which supports Win32 via FlushFileBuffers.
This commit is contained in:
@@ -34,7 +34,10 @@ do_drop_caches (int what)
|
||||
{
|
||||
FILE *fp;
|
||||
|
||||
sync ();
|
||||
if (sync_disks () == -1) {
|
||||
reply_with_perror ("sync");
|
||||
return -1;
|
||||
}
|
||||
|
||||
fp = fopen (PROCFILE, "w");
|
||||
if (fp == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user