diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-03 19:44:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-04 09:07:31 +0200 |
commit | 1c80e425124457146ab03279e44ba5155d3e1716 (patch) | |
tree | 858d2fc4799c7782d50f0dcc09e2f488c80e1720 | |
parent | 989189eabf420690ca64d4713cea62e79c945d86 (diff) |
cgroup-util: make cg_pid_get_path() return -ENODATA when controller can't be found
If the controller managed by systemd cannot found in /proc/$PID/cgroup,
return ENODATA, the usual error for cases where the data being looked
for does not exist, even if the process does.
-rw-r--r-- | src/basic/cgroup-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index 77375f3669..812308e243 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c @@ -870,7 +870,7 @@ int cg_pid_get_path(const char *controller, pid_t pid, char **path) { return 0; } - return -ENOENT; + return -ENODATA; } int cg_install_release_agent(const char *controller, const char *agent) { |