Merge "Optional autogen.sh flag --enable-kdbus-transport added allowing to compile...
[platform/upstream/dbus.git] / tools / dbus-monitor.c
index ba9f9cc..a4b5478 100644 (file)
@@ -239,14 +239,6 @@ only_one_type (dbus_bool_t *seen_bus_type,
     }
 }
 
-static dbus_bool_t sigint_received = FALSE;
-
-static void
-sigint_handler (int signum)
-{
-  sigint_received = TRUE;
-}
-
 int
 main (int argc, char *argv[])
 {
@@ -388,22 +380,22 @@ main (int argc, char *argv[])
   else
     {
       dbus_bus_add_match (connection,
-                         "type='signal'",
+                         EAVESDROPPING_RULE ",type='signal'",
                          &error);
       if (dbus_error_is_set (&error))
         goto lose;
       dbus_bus_add_match (connection,
-                         "type='method_call'",
+                         EAVESDROPPING_RULE ",type='method_call'",
                          &error);
       if (dbus_error_is_set (&error))
         goto lose;
       dbus_bus_add_match (connection,
-                         "type='method_return'",
+                         EAVESDROPPING_RULE ",type='method_return'",
                          &error);
       if (dbus_error_is_set (&error))
         goto lose;
       dbus_bus_add_match (connection,
-                         "type='error'",
+                         EAVESDROPPING_RULE ",type='error'",
                          &error);
       if (dbus_error_is_set (&error))
         goto lose;