Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libprocessgroup/setup/cgroup_map_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static bool ActivateV2CgroupController(const CgroupDescriptor& descriptor) {

if (!Mkdir(controller->path(), descriptor.mode(), descriptor.uid(), descriptor.gid())) {
LOG(ERROR) << "Failed to create directory for " << controller->name() << " cgroup";
return descriptor.controller()->flags() & CGROUPRC_CONTROLLER_FLAG_OPTIONAL;
return false;
}

return ::ActivateControllers(controller->path(), {{controller->name(), descriptor}});
Expand Down Expand Up @@ -291,8 +291,8 @@ bool CgroupSetup() {
}

if (!SetupCgroup(descriptor)) {
LOG(ERROR) << "Failed to setup " << name << " cgroup";
return false;
// issue a warning and proceed with the next cgroup
LOG(WARNING) << "Failed to setup " << name << " cgroup";
}
}

Expand Down