kata-containers / cgroups-rs

Native Rust library for managing control groups under Linux
https://crates.io/crates/cgroups-rs
Other
114 stars 45 forks source link

Determine cgroup mode in add_task() #103

Closed yaoyinnan closed 1 year ago

yaoyinnan commented 1 year ago

Determine the cgroup mode in add_task() to avoid the wrong operation of the caller writing threads to cgroup.threads in non-thread mode.