diff options
Diffstat (limited to 'devel/gio-fam-backend/files')
-rw-r--r-- | devel/gio-fam-backend/files/patch-fam | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/devel/gio-fam-backend/files/patch-fam b/devel/gio-fam-backend/files/patch-fam index ebd87f218..0760f88fe 100644 --- a/devel/gio-fam-backend/files/patch-fam +++ b/devel/gio-fam-backend/files/patch-fam @@ -1,24 +1,3 @@ ---- gio/fam/fam-helper.c.orig 2008-03-10 13:50:08.000000000 -0400 -+++ gio/fam/fam-helper.c 2008-03-10 13:50:29.000000000 -0400 -@@ -181,6 +185,18 @@ _fam_sub_startup (void) - return TRUE; - } - -+void -+_fam_sub_shutdown (void) -+{ -+ if (fam_connection != NULL) { -+ FAMClose (fam_connection); -+ g_free (fam_connection); -+ g_source_remove (fam_watch_id); -+ fam_watch_id = 0; -+ fam_connection = NULL; -+ } -+} -+ - fam_sub* - _fam_sub_add (const gchar* pathname, - gboolean directory, --- gio/fam/fam-helper.h.orig 2008-03-10 13:50:12.000000000 -0400 +++ gio/fam/fam-helper.h 2008-03-10 13:50:29.000000000 -0400 @@ -28,6 +28,7 @@ @@ -51,3 +30,28 @@ if (G_OBJECT_CLASS (g_fam_file_monitor_parent_class)->finalize) (*G_OBJECT_CLASS (g_fam_file_monitor_parent_class)->finalize) (object); } +--- gio/fam/fam-helper.c.orig 2008-03-10 20:31:58.000000000 -0400 ++++ gio/fam/fam-helper.c 2008-03-10 23:06:32.000000000 -0400 +@@ -181,6 +181,22 @@ _fam_sub_startup (void) + return TRUE; + } + ++void ++_fam_sub_shutdown (void) ++{ ++ G_LOCK (fam_connection); ++ ++ if (fam_connection != NULL) { ++ FAMClose (fam_connection); ++ g_free (fam_connection); ++ g_source_remove (fam_watch_id); ++ fam_watch_id = 0; ++ fam_connection = NULL; ++ } ++ ++ G_UNLOCK (fam_connection); ++} ++ + fam_sub* + _fam_sub_add (const gchar* pathname, + gboolean directory, |