[PATCH] HAL runner doesn't handle D-Bus disconnect properly

Doug Goldstein cardoe at gentoo.org
Wed Apr 25 13:07:00 PDT 2007


It appears that if the connection to D-Bus is lost or some such is lost,
HAL doesn't check the result of DBusPendingCall from
dbus_connection_send_with_reply() [1] to see if the result is not NULL
and as such an invalid case is being hit within the D-Bus API and we're
hitting a D-Bus assert and causing a crash.

Provided is a patch to see if it's NULL and handle it properly.

[1]
http://dbus.freedesktop.org/doc/dbus/api/html/group__DBusConnection.html#g8ffe6999b791b68ef959d39144632bfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 19_hald_runner_catch_dbus_disconnect.patch
Type: text/x-patch
Size: 527 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070425/ce9daa9f/19_hald_runner_catch_dbus_disconnect.bin


More information about the hal mailing list