summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-server-unix.c
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-09-07 18:24:11 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-09-07 18:24:11 +0000
commitd3ae8527461b48a00a153d511c57952a8197c921 (patch)
treea1e807f2586299300fce2e9f15f355434690a316 /dbus/dbus-server-unix.c
parent1eae184450a585f10c8988613e0f7259e1d6066a (diff)
* Clean up close calls to use _dbus_close (Patch from
Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>)
Diffstat (limited to 'dbus/dbus-server-unix.c')
-rw-r--r--dbus/dbus-server-unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus/dbus-server-unix.c b/dbus/dbus-server-unix.c
index b9623370..64b4598a 100644
--- a/dbus/dbus-server-unix.c
+++ b/dbus/dbus-server-unix.c
@@ -102,7 +102,7 @@ handle_new_client_fd_and_unlock (DBusServer *server,
transport = _dbus_transport_new_for_fd (client_fd, &server->guid_hex, NULL);
if (transport == NULL)
{
- close (client_fd);
+ _dbus_close (client_fd, NULL);
SERVER_UNLOCK (server);
return FALSE;
}
@@ -219,7 +219,7 @@ unix_disconnect (DBusServer *server)
unix_server->watch = NULL;
}
- close (unix_server->fd);
+ _dbus_close (unix_server->fd, NULL);
unix_server->fd = -1;
if (unix_server->socket_name != NULL)
@@ -436,7 +436,7 @@ _dbus_server_new_for_tcp_socket (const char *host,
if (server == NULL)
{
dbus_set_error (error, DBUS_ERROR_NO_MEMORY, NULL);
- close (listen_fd);
+ _dbus_close (listen_fd, NULL);
_dbus_string_free (&address);
return NULL;
}