diff options
author | Kay Sievers <kay@vrfy.org> | 2015-07-06 17:45:26 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2015-07-06 17:47:38 +0200 |
commit | de865432f887e68ac7add166cf618c88431d6538 (patch) | |
tree | fdee61a983da2296091577365b27d53d93f2cfb0 /src | |
parent | e1141a962239ef9ad2383a7f57ff151597a2b982 (diff) |
bus-proxyd: subscribe to unicast signals directed to the proxy connection
Diffstat (limited to 'src')
-rw-r--r-- | src/bus-proxyd/proxy.c | 13 |
1 files changed, 13 insertions, 0 deletions
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; } |