diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-06 20:22:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-06 20:22:41 +0200 |
commit | 24715314fb7ef6590633c25f2abbb3a4e345a18b (patch) | |
tree | 3e64f6f1df92c09f6f66b2aa543b60650483b7b6 /src/core/dbus-unit.c | |
parent | systemctl: when GetProcesses() doesn't work, say for which unit (diff) | |
download | systemd-24715314fb7ef6590633c25f2abbb3a4e345a18b.tar.xz systemd-24715314fb7ef6590633c25f2abbb3a4e345a18b.zip |
pid: fix ENOENT error check
Diffstat (limited to '')
-rw-r--r-- | src/core/dbus-unit.c | 2 |
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; |