gvfs r2359 - in trunk: . client
- From: hansp svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r2359 - in trunk: . client
- Date: Thu, 2 Apr 2009 04:51:03 +0000 (UTC)
Author: hansp
Date: Thu Apr 2 04:51:03 2009
New Revision: 2359
URL: http://svn.gnome.org/viewvc/gvfs?rev=2359&view=rev
Log:
2009-04-01 Hans Petter Jansson <hpj novell com>
* client/gvfsfusedaemon.c
(vfs_flush)
(vfs_fsync): Hold file mutex while closing stream.
Modified:
trunk/ChangeLog
trunk/client/gvfsfusedaemon.c
Modified: trunk/client/gvfsfusedaemon.c
==============================================================================
--- trunk/client/gvfsfusedaemon.c (original)
+++ trunk/client/gvfsfusedaemon.c Thu Apr 2 04:51:03 2009
@@ -1413,7 +1413,9 @@
if (fh)
{
+ g_mutex_lock (fh->mutex);
file_handle_close_stream (fh);
+ g_mutex_unlock (fh->mutex);
/* get_file_handle_from_info () adds a "working ref", so release that. */
file_handle_unref (fh);
@@ -1432,7 +1434,9 @@
if (fh)
{
+ g_mutex_lock (fh->mutex);
file_handle_close_stream (fh);
+ g_mutex_unlock (fh->mutex);
/* get_file_handle_from_info () adds a "working ref", so release that. */
file_handle_unref (fh);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]