dbus/glib dbus-gmain.c,1.38,1.39
Havoc Pennington
hp at freedesktop.org
Wed Apr 13 07:10:23 PDT 2005
Update of /cvs/dbus/dbus/glib
In directory gabe:/tmp/cvs-serv8931/glib
Modified Files:
dbus-gmain.c
Log Message:
2005-04-13 Havoc Pennington <hp at redhat.com>
* glib/dbus-gmain.c (message_queue_dispatch): only dispatch one
message at a time to avoid monopolizing the main loop, bug
#2953 from Benjamin Otte
Index: dbus-gmain.c
===================================================================
RCS file: /cvs/dbus/dbus/glib/dbus-gmain.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- dbus-gmain.c 6 Apr 2005 17:36:47 -0000 1.38
+++ dbus-gmain.c 13 Apr 2005 14:10:21 -0000 1.39
@@ -103,9 +103,9 @@
DBusConnection *connection = ((DBusGMessageQueue *)source)->connection;
dbus_connection_ref (connection);
-
- while (dbus_connection_dispatch (connection) == DBUS_DISPATCH_DATA_REMAINS)
- ;
+
+ /* Only dispatch once - we don't want to starve other GSource */
+ dbus_connection_dispatch (connection);
dbus_connection_unref (connection);
More information about the dbus-commit
mailing list