We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a7e65 commit 6b9e5b2Copy full SHA for 6b9e5b2
crates/shim/src/cgroup.rs
@@ -209,7 +209,7 @@ pub fn get_cgroups_v2_path_by_pid(pid: u32) -> Result<PathBuf> {
209
// https://github.com/opencontainers/runc/blob/1950892f69597aa844cbf000fbdf77610dda3a44/libcontainer/cgroups/fs2/defaultpath.go#L83
210
fn parse_cgroups_v2_path(content: &str) -> Result<PathBuf> {
211
// the entry for cgroup v2 is always in the format like `0::$PATH`
212
- // where 0 is the hierarchy ID, the controller name is ommit in cgroup v2
+ // where 0 is the hierarchy ID, the controller name is omitted in cgroup v2
213
// and $PATH is the cgroup path
214
// see https://docs.kernel.org/admin-guide/cgroup-v2.html
215
let Some(path) = content.strip_prefix("0::") else {
0 commit comments