From de865432f887e68ac7add166cf618c88431d6538 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Mon, 6 Jul 2015 17:45:26 +0200 Subject: bus-proxyd: subscribe to unicast signals directed to the proxy connection --- src/bus-proxyd/proxy.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/bus-proxyd') diff --git a/src/bus-proxyd/proxy.c b/src/bus-proxyd/proxy.c index c0055d3788..f9308f25c3 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; } -- cgit v1.2.3-54-g00ecf