hal: Branch 'master'

Danny Kukawka dkukawka at kemper.freedesktop.org
Wed Jan 30 08:21:23 PST 2008


 hald/linux/addons/addon-cpufreq.c |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit e6e7ba2802cf57f2d9e56694cbc69b1899139ea2
Author: Danny Kukawka <danny.kukawka at web.de>
Date:   Wed Jan 30 17:20:51 2008 +0100

    fixed cpufreq addon to ignore nonrelevant messages
    
    Fixed cpufreq addon to ignore nonrelevant messages: since we wait
    only for method calls with interface == DBUS_INTERFACE check
    it and return if there are calls/signals with other interfaces

diff --git a/hald/linux/addons/addon-cpufreq.c b/hald/linux/addons/addon-cpufreq.c
index 04021df..040ebd9 100644
--- a/hald/linux/addons/addon-cpufreq.c
+++ b/hald/linux/addons/addon-cpufreq.c
@@ -1102,6 +1102,11 @@ static DBusHandlerResult dbus_filter_function(DBusConnection *connection,
 
 	dbus_error_init(&dbus_error);
 
+	/* since we wait only for method calls with interface == DBUS_INTERFACE check 
+	   it and return if there are calls with other interfaces */
+	if (!dbus_message_has_interface(message, DBUS_INTERFACE)) 
+		return DBUS_HANDLER_RESULT_HANDLED;
+
 #ifdef HAVE_POLKIT
 	if (!dbus_is_privileged(connection, message, &dbus_error))
 		return DBUS_HANDLER_RESULT_HANDLED;


More information about the hal-commit mailing list