From 6be547d32f018c23ba56426a0bccd08baa2cf440 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 11 Apr 2003 00:03:06 +0000 Subject: 2003-04-10 Havoc Pennington * dbus/dbus-connection.c (dbus_connection_flush): don't spin on the connection if it's disconnected * bus/activation.c (bus_activation_service_created): use new transaction features to roll back removal of pending activation if we don't successfully create the service after all. Don't remove pending activation if the function fails. * dbus/dbus-list.c (_dbus_list_insert_before_link) (_dbus_list_insert_after_link): new code to facilitate services.c fixes * dbus/dbus-hash.c (_dbus_hash_table_insert_string_preallocated): new functionality, so we can preallocate the ability to insert into a hash table. * bus/connection.c (bus_transaction_add_cancel_hook): new function allowing us to put custom hooks in a transaction to be used for cancelling said transaction * doc/dbus-specification.sgml: add some discussion of secondary service owners, and disallow zero-length service names * bus/services.c (bus_registry_acquire_service): new function, splits out part of bus_driver_handle_acquire_service() and fixes a bug where we didn't remove the service doing the acquiring from the secondary queue if we failed to remove the current owner from the front of the queue. --- test/test-service.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/test-service.c b/test/test-service.c index 9d5eceef..ec2e8dc7 100644 --- a/test/test-service.c +++ b/test/test-service.c @@ -17,7 +17,7 @@ quit (void) static void die (const char *message) { - fprintf (stderr, "%s", message); + fprintf (stderr, "*** %s", message); exit (1); } @@ -110,7 +110,7 @@ main (int argc, connection = dbus_bus_get (DBUS_BUS_ACTIVATION, &error); if (connection == NULL) { - fprintf (stderr, "Failed to open connection to activating message bus: %s\n", + fprintf (stderr, "*** Failed to open connection to activating message bus: %s\n", error.message); dbus_error_free (&error); return 1; @@ -135,7 +135,7 @@ main (int argc, 0, &error); if (dbus_error_is_set (&error)) { - fprintf (stderr, "Failed to acquire service: %s\n", + fprintf (stderr, "*** Failed to acquire service: %s\n", error.message); dbus_error_free (&error); exit (1); -- cgit