chiark / gitweb /
core: make settings for unified cgroup hierarchy supersede the ones for legacy hierar...
[elogind.git] / src / libelogind / sd-bus / bus-match.c
index 4960709e7fe9e6a4defe3f745f300b25696be47d..3e6930a0d3de2c4ad989369336002e09e0b2bcfc 100644 (file)
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
 /***
   This file is part of systemd.
 
@@ -431,6 +429,9 @@ int bus_match_run(
                         r = bus_match_run(bus, c, m);
                         if (r != 0)
                                 return r;
+
+                        if (bus && bus->match_callbacks_modified)
+                                return 0;
                 }
         }
 
@@ -942,7 +943,7 @@ char *bus_match_to_string(struct bus_match_component *components, unsigned n_com
         char *buffer = NULL;
         size_t size = 0;
         unsigned i;
-               int r;
+        int r;
 
         if (n_components <= 0)
                 return strdup("");