summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/MAX_PROC_NR2
-rw-r--r--src/guestfs.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/src/MAX_PROC_NR b/src/MAX_PROC_NR
index 1473a88f..e01062f1 100644
--- a/src/MAX_PROC_NR
+++ b/src/MAX_PROC_NR
@@ -1 +1 @@
-281
+282
diff --git a/src/guestfs.c b/src/guestfs.c
index 488b6586..79fc5bfa 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -189,10 +189,8 @@ guestfs_close (guestfs_h *g)
guestfs___free_inspect_info (g);
/* Try to sync if autosync flag is set. */
- if (g->autosync && g->state == READY) {
- guestfs_umount_all (g);
- guestfs_sync (g);
- }
+ if (g->autosync && g->state == READY)
+ guestfs_internal_autosync (g);
/* Remove any handlers that might be called back before we kill the
* subprocess.