From 51781f541094a4936d47119cd62682e0431c41e9 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Thu, 10 Apr 2003 05:12:19 +0000 Subject: 2003-04-10 Havoc Pennington * bus/dispatch.c: lots of fixes * dbus/dbus-mainloop.c (_dbus_loop_dispatch): export (_dbus_loop_iterate): remove old "quit if no callbacks" code, that was crack, broke the test service. * dbus/dbus-transport.c (_dbus_transport_open): fix error handling to avoid piling up errors if we get a failure on the first address. * dbus/dbus-internals.c (_dbus_real_assert_not_reached): include pid in assertion failures. * dbus/dbus-mainloop.c (_dbus_loop_iterate): use static arrays up to some fixed size of file descriptor array. Don't return TRUE anytime a timeout exists, that led to lots of busy loop silliness in the tests. --- test/test-service.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/test-service.c') diff --git a/test/test-service.c b/test/test-service.c index 732e5b13..9d5eceef 100644 --- a/test/test-service.c +++ b/test/test-service.c @@ -2,7 +2,7 @@ #include "test-utils.h" static DBusLoop *loop; -static dbus_bool_t already_quit; +static dbus_bool_t already_quit = FALSE; static void quit (void) @@ -140,7 +140,8 @@ main (int argc, dbus_error_free (&error); exit (1); } - + + _dbus_verbose ("*** Test service entering main loop\n"); _dbus_loop_run (loop); test_connection_shutdown (loop, connection); -- cgit