diff options
author | Havoc Pennington <hp@redhat.com> | 2003-03-15 04:25:09 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-03-15 04:25:09 +0000 |
commit | 169238e99a4a163c89eb053250daeedf5f73e5cd (patch) | |
tree | 4b8f9af81765077fd9a227bae974924d905f182f /dbus/dbus-transport-unix.c | |
parent | 4c95a9782c65f88e2904c44abeb734a1b00f6353 (diff) |
2003-03-14 Havoc Pennington <hp@pobox.com>
* bus/dispatch.c (bus_dispatch_test): do test using debug-pipe
transport, tests more of the real codepath. Set up clients
with bus_setup_debug_client.
* bus/test.c (bus_setup_debug_client): function to set up debug
"clients" on the main loop
* dbus/dbus-transport.c (_dbus_transport_open): add debug-pipe
support
* dbus/dbus-server.c (dbus_server_listen): add debug-pipe
server type
* dbus/dbus-server-debug.c: support a debug server based on pipes
* dbus/dbus-sysdeps.c (_dbus_full_duplex_pipe): new function
(_dbus_close): new function
* configure.in: check for socketpair
Diffstat (limited to 'dbus/dbus-transport-unix.c')
-rw-r--r-- | dbus/dbus-transport-unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus/dbus-transport-unix.c b/dbus/dbus-transport-unix.c index a2b8a384..dfaeb1ad 100644 --- a/dbus/dbus-transport-unix.c +++ b/dbus/dbus-transport-unix.c @@ -888,7 +888,7 @@ unix_disconnect (DBusTransport *transport) free_watches (transport); - close (unix_transport->fd); + _dbus_close (unix_transport->fd, NULL); unix_transport->fd = -1; } @@ -1161,7 +1161,7 @@ _dbus_transport_new_for_domain_socket (const char *path, if (transport == NULL) { dbus_set_result (result, DBUS_RESULT_NO_MEMORY); - close (fd); + _dbus_close (fd, NULL); fd = -1; } @@ -1199,7 +1199,7 @@ _dbus_transport_new_for_tcp_socket (const char *host, if (transport == NULL) { dbus_set_result (result, DBUS_RESULT_NO_MEMORY); - close (fd); + _dbus_close (fd, NULL); fd = -1; } |