diff options
author | Havoc Pennington <hp@redhat.com> | 2003-03-16 21:01:57 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-03-16 21:01:57 +0000 |
commit | d1f65c6c4f9dd9750f9ad3eda5b590a4ffca6498 (patch) | |
tree | a5e6728794bc55602755fc7fff1eb51613222ade /bus/connection.c | |
parent | ebb57e719c32becd95a1efe3dd269c21e5a011b6 (diff) | |
download | dbus-d1f65c6c4f9dd9750f9ad3eda5b590a4ffca6498.tar.gz |
2003-03-16 Havoc Pennington <hp@pobox.com>
* dbus/dbus-bus.c (ensure_bus_data): handle failure to set
connection data
* dbus/dbus-memory.c (_dbus_initialize_malloc_debug): support
DBUS_MALLOC_BACKTRACES to print trace when failing an alloc
Diffstat (limited to 'bus/connection.c')
-rw-r--r-- | bus/connection.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bus/connection.c b/bus/connection.c index 2169d8ab..80afc7e1 100644 --- a/bus/connection.c +++ b/bus/connection.c @@ -58,8 +58,11 @@ bus_connection_disconnected (DBusConnection *connection) BusService *service; d = BUS_CONNECTION_DATA (connection); - _dbus_assert (d != NULL); + _dbus_assert (d != NULL); + _dbus_verbose ("%s disconnected, dropping all service ownership and releasing\n", + d->name ? d->name : "(inactive)"); + /* Drop any service ownership. FIXME Unfortunately, this requires * memory allocation and there doesn't seem to be a good way to * handle it other than sleeping; we can't "fail" the operation of @@ -551,6 +554,8 @@ bus_connection_set_name (DBusConnection *connection, if (d->name == NULL) return FALSE; + _dbus_verbose ("Name %s assigned to %p\n", d->name, connection); + return TRUE; } @@ -654,11 +659,15 @@ bus_transaction_send_message (BusTransaction *transaction, to_send->message = message; to_send->transaction = transaction; + _dbus_verbose ("about to prepend message\n"); + if (!_dbus_list_prepend (&d->transaction_messages, to_send)) { message_to_send_free (connection, to_send); return FALSE; } + + _dbus_verbose ("prepended message\n"); /* See if we already had this connection in the list * for this transaction. If we have a pending message, |