Make cancellation threadsafe (i.e. guarantee its only done once, and

2008-03-05  Alexander Larsson  <alexl@redhat.com>

        * gfilemonitor.c:
	Make cancellation threadsafe (i.e.
	guarantee its only done once, and always
	done)
	
        * glocaldirectorymonitor.c:
	Make sure we the monitor lives while the
	mounts_changed callback is being called (#520484)


svn path=/trunk/; revision=6630
This commit is contained in:
Alexander Larsson
2008-03-05 11:50:27 +00:00
committed by Alexander Larsson
parent ad649b0bd1
commit 602295158f
3 changed files with 31 additions and 6 deletions

View File

@@ -128,8 +128,8 @@ g_local_directory_monitor_constructor (GType type,
g_unix_mount_free (mount);
local_monitor->mount_monitor = g_unix_mount_monitor_new ();
g_signal_connect (local_monitor->mount_monitor, "mounts_changed",
G_CALLBACK (mounts_changed), local_monitor);
g_signal_connect_object (local_monitor->mount_monitor, "mounts_changed",
G_CALLBACK (mounts_changed), local_monitor, 0);
#endif
}