summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-02-08 17:22:13 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-02-11 19:14:47 -0500
commita87105a38637355bd6d648036f0369a1a9546ae9 (patch)
tree38cf225fd9ad8ce2c84467bfe712a1a861a1896e /src/login
parent9bb69af4f2823fdd30902f5ffd959e9b041feb53 (diff)
logind: ignore PropertiesChanged signals for jobs
Otherwise we get a (harmless) message like: systemd-logind[30845]: Failed to process message [type=signal sender=:1.36 path=/org/freedesktop/systemd1/job/4674 interface=org.freedesktop.DBus.Properties member=PropertiesChanged signature=sa{sv}as]: Invalid argument
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-dbus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 08e53c3695..bd0de33866 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -2047,7 +2047,8 @@ int match_properties_changed(sd_bus *bus, sd_bus_message *message, void *userdat
r = unit_name_from_dbus_path(path, &unit);
if (r < 0)
- return r;
+ /* quietly ignore non-units paths */
+ return r == -EINVAL ? 0 : r;
session = hashmap_get(m->session_units, unit);
if (session)