]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-proxyd: subscribe to unicast signals directed to the proxy connection
authorKay Sievers <kay@vrfy.org>
Mon, 6 Jul 2015 15:45:26 +0000 (17:45 +0200)
committerKay Sievers <kay@vrfy.org>
Mon, 6 Jul 2015 15:47:38 +0000 (17:47 +0200)
src/bus-proxyd/proxy.c

index c0055d3788562999eb2d818c9322a8303ae2df8d..f9308f25c346b9568adec7c1eba2f1819ed7ba66 100644 (file)
@@ -189,6 +189,19 @@ static int proxy_prepare_matches(Proxy *p) {
         if (r < 0)
                 return log_error_errno(r, "Failed to add match for NameAcquired: %m");
 
+        free(match);
+        match = strjoin("type='signal',"
+                        "destination='",
+                        unique,
+                        "'",
+                        NULL);
+        if (!match)
+                return log_oom();
+
+        r = sd_bus_add_match(p->destination_bus, NULL, match, NULL, NULL);
+        if (r < 0)
+                log_error_errno(r, "Failed to add match for NameAcquired: %m");
+
         return 0;
 }