dbus-send losing signals
walters at verbum.org
Wed Mar 18 15:39:50 PDT 2009
On Fri, Mar 13, 2009 at 8:03 PM, Havoc Pennington <hp at pobox.com> wrote:
> On Fri, Mar 13, 2009 at 6:54 PM, Colin Walters <walters at verbum.org> wrote:
>> If we want to work around this for dbus-send, we could have it send a
>> synchronous request to the bus before exiting. I was going to suggest
>> org.freedesktop.DBus.Peer.Ping but apparently the bus doesn't respect
>> that (worth fixing).
> Indeed, this is a simple straightforward fix. Could use any random
> method on the bus if Ping doesn't work.
A patch now lives in
> (How does the bus break Ping, anyway? It seems to be implemented in
> dbus-connection.c so one would have to break it on purpose almost)
Turns out it's because the bus calls
dbus_connection_set_route_peer_messages so that they get routed to the
target process. A patch to have the bus process pings targeted for
itself is also in that bug (and the dbus-send hack depends on it).
More information about the dbus