1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

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.
This commit is contained in:
Lennart Poettering 2015-09-03 19:44:02 +02:00
parent 989189eabf
commit 1c80e42512

View File

@ -870,7 +870,7 @@ int cg_pid_get_path(const char *controller, pid_t pid, char **path) {
return 0; return 0;
} }
return -ENOENT; return -ENODATA;
} }
int cg_install_release_agent(const char *controller, const char *agent) { int cg_install_release_agent(const char *controller, const char *agent) {