Merge "libprocessgroup: Proceed if activation of an optional controller fails" am: 05c7e3c0c2
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2424613 Change-Id: I91475c113e0e22aee1b489e7e085d9ec850ca5b0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
850bac57b9
1 changed files with 6 additions and 1 deletions
|
|
@ -234,7 +234,12 @@ int CgroupMap::ActivateControllers(const std::string& path) const {
|
|||
std::string str("+");
|
||||
str.append(ACgroupController_getName(controller));
|
||||
if (!WriteStringToFile(str, path + "/cgroup.subtree_control")) {
|
||||
return -errno;
|
||||
if (flags & CGROUPRC_CONTROLLER_FLAG_OPTIONAL) {
|
||||
PLOG(WARNING) << "Activation of cgroup controller " << str
|
||||
<< " failed in path " << path;
|
||||
} else {
|
||||
return -errno;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue