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

Merge pull request #1348 from larsu/master

busctl: also monitor messages to SERVICE arguments
This commit is contained in:
Lennart Poettering 2015-09-23 00:39:27 +02:00
commit 73de5e9464

View File

@ -1096,6 +1096,15 @@ static int monitor(sd_bus *bus, char *argv[], int (*dump)(sd_bus_message *m, FIL
if (r < 0)
return log_error_errno(r, "Failed to add match: %m");
free(m);
m = strjoin("destination='", *i, "'", NULL);
if (!m)
return log_oom();
r = sd_bus_add_match(bus, NULL, m, NULL, NULL);
if (r < 0)
return log_error_errno(r, "Failed to add match: %m");
added_something = true;
}