Skip to content

Commit 11a6559

Browse files
jsturtevantmxpv
authored andcommitted
Updates cgroup rs to latest version
Signed-off-by: James Sturtevant <jstur@microsoft.com>
1 parent b9a1e14 commit 11a6559

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/shim/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ signal-hook-tokio = { version = "0.3.1", optional = true, features = [
6363
tokio = { workspace = true, features = ["full"], optional = true }
6464

6565
[target.'cfg(target_os = "linux")'.dependencies]
66-
cgroups-rs = "0.2.9"
66+
cgroups-rs = "0.3.3"
6767

6868
[target.'cfg(unix)'.dependencies]
6969
command-fds = "0.2.1"

crates/shim/src/cgroup.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,15 +302,15 @@ mod tests {
302302
let h = hierarchies::auto();
303303

304304
// create cgroup path first
305-
let cg = Cgroup::new(h, path);
305+
let cg = Cgroup::new(h, path).unwrap();
306306

307307
let pid = std::process::id();
308308
add_task_to_cgroup(path, pid).unwrap();
309309
let cg_id = CgroupPid::from(pid as u64);
310310
assert!(cg.tasks().contains(&cg_id));
311311

312312
// remove cgroup as possible
313-
cg.remove_task(cg_id);
313+
cg.remove_task(cg_id).unwrap();
314314
cg.delete().unwrap()
315315
}
316316

0 commit comments

Comments
 (0)