mirror of
https://github.com/mii443/izoli.git
synced 2025-08-22 16:05:40 +00:00
add set_max_descendants
This commit is contained in:
@ -141,6 +141,10 @@ impl CGroup {
|
||||
self.write_value("cgroup.max.depth", max)
|
||||
}
|
||||
|
||||
pub fn set_max_descendants(&self, max: CGroupLimitValue<u64>) -> Result<(), std::io::Error> {
|
||||
self.write_value("cgroup.max.descendants", max)
|
||||
}
|
||||
|
||||
fn write_value<T>(&self, name: &str, value: T) -> Result<(), std::io::Error>
|
||||
where
|
||||
T: fmt::Display,
|
||||
|
Reference in New Issue
Block a user