summaryrefslogtreecommitdiffstats
path: root/src/core/dbus-unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-06 20:22:41 +0200
committerLennart Poettering <lennart@poettering.net>2018-06-06 20:22:41 +0200
commit24715314fb7ef6590633c25f2abbb3a4e345a18b (patch)
tree3e64f6f1df92c09f6f66b2aa543b60650483b7b6 /src/core/dbus-unit.c
parentsystemctl: when GetProcesses() doesn't work, say for which unit (diff)
downloadsystemd-24715314fb7ef6590633c25f2abbb3a4e345a18b.tar.xz
systemd-24715314fb7ef6590633c25f2abbb3a4e345a18b.zip
pid: fix ENOENT error check
Diffstat (limited to '')
-rw-r--r--src/core/dbus-unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c
index 14223b1220..150ccc024c 100644
--- a/src/core/dbus-unit.c
+++ b/src/core/dbus-unit.c
@@ -824,7 +824,7 @@ static int append_cgroup(sd_bus_message *reply, const char *p, Set *pids) {
assert(p);
r = cg_enumerate_processes(SYSTEMD_CGROUP_CONTROLLER, p, &f);
- if (r == ENOENT)
+ if (r == -ENOENT)
return 0;
if (r < 0)
return r;