diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-09-30 10:39:57 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-09-30 10:39:57 +0200 |
commit | 7373acf9b15f40f1c01bd2a325b380ba9bc17d19 (patch) | |
tree | 885dc4d410a12673fc0a102f44494e75707274d9 /metadata | |
parent | 3a70ae6f9f9ffc48e1e1b9337e57760d2e10e7d6 (diff) | |
download | gvfs-7373acf9b15f40f1c01bd2a325b380ba9bc17d19.tar.gz |
file monitor: Construct synchronously
g_file_monitor_file() is a sync call anyway, so doing some sync i/o
in the constructor doesn't make a difference, and doing so avoids
races where you would not get change events for operations you do.
We don't actually need to wait for the subscribe event, and proxy
construction in this case does not do any i/o, so we're really only
doing sync i/o to look up the connection, and it should be cached from
the earlier call in g_daemon_file_monitor_file(), so in practice
this should make little difference.
https://bugzilla.gnome.org/show_bug.cgi?id=749317
Diffstat (limited to 'metadata')
0 files changed, 0 insertions, 0 deletions