[tracker/dbus-fd-experiment] Steroids server: Remove extra close calls



commit c2cc8547c0d628d9f646920dc2661c04267f49a2
Author: Adrien Bustany <abustany gnome org>
Date:   Mon Jun 14 09:40:01 2010 -0400

    Steroids server: Remove extra close calls
    
    This commit removes some useless close calls, that would trigger
    warnings in tracker-store's log. FD are automatically closed when GIO's
    UNIX streams are finalized.

 src/tracker-store/tracker-steroids.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/tracker-store/tracker-steroids.c b/src/tracker-store/tracker-steroids.c
index f3134fc..95b0095 100644
--- a/src/tracker-store/tracker-steroids.c
+++ b/src/tracker-store/tracker-steroids.c
@@ -99,10 +99,6 @@ destroy_client_info (gpointer user_data)
 	dbus_message_unref (info->call_message);
 	dbus_connection_unref (info->connection);
 
-	if (info->fd) {
-		close (info->fd);
-	}
-
 	g_slice_free (ClientInfo, user_data);
 }
 
@@ -210,10 +206,6 @@ update_blank_callback (GPtrArray *blank_nodes, GError *error, gpointer user_data
 	DBusMessageIter subiter;
 	DBusMessageIter subsubiter;
 
-	if (info->fd) {
-		close (info->fd);
-	}
-
 	if (error) {
 		tracker_dbus_request_failed (info->request_id,
 		                             NULL,



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