1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

bus-proxyd: subscribe to unicast signals directed to the proxy connection

This commit is contained in:
Kay Sievers 2015-07-06 17:45:26 +02:00
parent e1141a9622
commit de865432f8

View 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;
}