[gvfs] Implement clean shutdown in afc backend



commit 5354d7ff2b3ade6f2d78769cbb831ee861572e13
Author: Timothy Arceri <t_arceri yahoo com au>
Date:   Wed May 8 20:56:24 2013 +1000

    Implement clean shutdown in afc backend
    
    https://bugzilla.gnome.org/show_bug.cgi?id=511802

 daemon/gvfsbackendafc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index 72d7c7a..f6b0118 100644
--- a/daemon/gvfsbackendafc.c
+++ b/daemon/gvfsbackendafc.c
@@ -359,8 +359,7 @@ _idevice_event_cb (const idevice_event_t *event, void *user_data)
 
   idevice_event_unsubscribe ();
 
-  /* TODO: need a cleaner way to force unmount ourselves */
-  exit (1);
+  g_vfs_backend_force_unmount ((GVfsBackend*)afc_backend);
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]