1
0
mirror of https://github.com/containers/youki synced 2024-11-23 01:11:58 +01:00

flip oom control

This commit is contained in:
Travis Sturzl 2021-05-21 23:22:33 -06:00
parent 6d8fbae0b9
commit b246640ce6

@ -43,6 +43,8 @@ impl Controller for Memory {
}
if linux_resources.disable_oom_killer {
Self::set_u64(0, &cgroup_root.join(CGROUP_MEMORY_OOM_CONTROL))?;
} else {
Self::set_u64(1, &cgroup_root.join(CGROUP_MEMORY_OOM_CONTROL))?;
}