Commit 5d4900ad authored by Simon McVittie's avatar Simon McVittie

dbus-monitor: disable automatic handling of o.fd.Peer messages

A normal DBusConnection will automatically reply to o.fd.Peer
messages such as Ping. We don't want this: we'll
confuse everyone else by replying to messages that weren't
intended for us.

Bug: default avatarSimon McVittie <>
Reviewed-by: Philip Withnall's avatarPhilip Withnall <>
(cherry picked from commit d9ee040d,
commit message adjusted to describe the impact in versions < 1.9)
parent 9c74286d
......@@ -365,6 +365,11 @@ main (int argc, char *argv[])
exit (1);
/* Receive o.fd.Peer messages as normal messages, rather than having
* libdbus handle them internally, which is the wrong thing for
* a monitor */
dbus_connection_set_route_peer_messages (connection, TRUE);
if (numFilters)
size_t offset = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment