Merge pull request #120 from fprasx/main

add .path() method
This commit is contained in:
Bin Liu
2023-08-03 15:10:08 +08:00
committed by GitHub

View File

@@ -73,6 +73,11 @@ impl Cgroup {
self.hier.v2()
}
/// Return the path the cgroup is located at.
pub fn path(&self) -> &str {
&self.path
}
/// Create this control group.
pub fn create(&self) -> Result<()> {
if self.hier.v2() {