dbus-monitor: add support for using BecomeMonitor to be a read-only monitor
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 2 Feb 2015 20:08:07 +0000 (20:08 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 4 Feb 2015 17:15:31 +0000 (17:15 +0000)
commit8a621b8f77706d2ce4feb7b0ffa946b4b95326c8
tree3179ee501a8065f22051568b96e0e46e4875b31a
parent81e9e4e07806fe69738efb928106d8e58c4c8883
dbus-monitor: add support for using BecomeMonitor to be a read-only monitor

Move the dbus_connection_add_filter() call further up as a precaution,
because it isn't safe for a monitor to not have a filter that
swallows all messages.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46787
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
tools/dbus-monitor.c