core: update populated event handling in unified hierarchy
Earlier during the development of unified hierarchy, the populated event was reported through by the dedicated "cgroup.populated" file; however, the interface was updated so that it's reported through the "populated" field of "cgroup.events" file. Update populated event handling logic accordingly.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
099619957a
commit
ab2c3861dc
@@ -55,8 +55,7 @@ int chown_cgroup(pid_t pid, uid_t uid_shift) {
|
||||
"cgroup.events",
|
||||
"cgroup.clone_children",
|
||||
"cgroup.controllers",
|
||||
"cgroup.subtree_control",
|
||||
"cgroup.populated")
|
||||
"cgroup.subtree_control")
|
||||
if (fchownat(fd, fn, uid_shift, uid_shift, 0) < 0)
|
||||
log_full_errno(errno == ENOENT ? LOG_DEBUG : LOG_WARNING, errno,
|
||||
"Failed to chown() cgroup file %s, ignoring: %m", fn);
|
||||
|
||||
Reference in New Issue
Block a user