dbus/test/glib test-service-glib.c,1.6,1.7
Havoc Pennington
hp at freedesktop.org
Sun Jan 30 12:06:54 PST 2005
Update of /cvs/dbus/dbus/test/glib
In directory gabe:/tmp/cvs-serv4897/test/glib
Modified Files:
test-service-glib.c
Log Message:
2005-01-30 Havoc Pennington <hp at redhat.com>
* glib/dbus-gmain.c: add a custom GSource back that just checks
whether the message queue has anything in it; otherwise, there are
cases where we won't see messages in the queue since there was no
IO visible to the glib main loop
* dbus/dbus-connection-internal.h (_DBUS_DEFAULT_TIMEOUT_VALUE):
increase default message timeout to 25 seconds
Index: test-service-glib.c
===================================================================
RCS file: /cvs/dbus/dbus/test/glib/test-service-glib.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- test-service-glib.c 30 Jan 2005 07:44:08 -0000 1.6
+++ test-service-glib.c 30 Jan 2005 20:06:52 -0000 1.7
@@ -128,8 +128,10 @@
DBusGPendingCall *call;
const char *v_STRING;
guint32 v_UINT32;
-
+
g_type_init ();
+
+ g_printerr ("Launching test-service-glib\n");
loop = g_main_loop_new (NULL, FALSE);
@@ -182,12 +184,12 @@
exit (1);
}
- g_print ("GLib test service has name '%s'\n", v_STRING);
- g_print ("GLib test service entering main loop\n");
+ g_printerr ("GLib test service has name '%s'\n", v_STRING);
+ g_printerr ("GLib test service entering main loop\n");
g_main_loop_run (loop);
- g_print ("Successfully completed %s\n", argv[0]);
+ g_printerr ("Successfully completed %s\n", argv[0]);
return 0;
}
More information about the dbus-commit
mailing list