From: Kay Sievers Date: Mon, 6 Jul 2015 15:45:26 +0000 (+0200) Subject: bus-proxyd: subscribe to unicast signals directed to the proxy connection X-Git-Tag: v222~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de865432f887e68ac7add166cf618c88431d6538;p=thirdparty%2Fsystemd.git bus-proxyd: subscribe to unicast signals directed to the proxy connection --- diff --git a/src/bus-proxyd/proxy.c b/src/bus-proxyd/proxy.c index c0055d37885..f9308f25c34 100644 --- a/src/bus-proxyd/proxy.c +++ b/src/bus-proxyd/proxy.c @@ -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; }