Skip to content

Commit 6b9e5b2

Browse files
Mossakajsturtevant
authored andcommitted
Update crates/shim/src/cgroup.rs
Co-authored-by: James Sturtevant <[email protected]> Signed-off-by: Jiaxiao Zhou <[email protected]>
1 parent 69a7e65 commit 6b9e5b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/shim/src/cgroup.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub fn get_cgroups_v2_path_by_pid(pid: u32) -> Result<PathBuf> {
209209
// https://github.com/opencontainers/runc/blob/1950892f69597aa844cbf000fbdf77610dda3a44/libcontainer/cgroups/fs2/defaultpath.go#L83
210210
fn parse_cgroups_v2_path(content: &str) -> Result<PathBuf> {
211211
// 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
212+
// where 0 is the hierarchy ID, the controller name is omitted in cgroup v2
213213
// and $PATH is the cgroup path
214214
// see https://docs.kernel.org/admin-guide/cgroup-v2.html
215215
let Some(path) = content.strip_prefix("0::") else {

0 commit comments

Comments
 (0)