git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
todo: live CD inspection
[libguestfs.git]
/
daemon
/
dropcaches.c
diff --git
a/daemon/dropcaches.c
b/daemon/dropcaches.c
index
a818323
..
46bfd07
100644
(file)
--- a/
daemon/dropcaches.c
+++ b/
daemon/dropcaches.c
@@
-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) {