1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-07 15:06:47 +00:00

cgroupv2: change newCgroupHook interface

这个提交包含在:
Miao Wang
2021-07-23 15:29:28 +08:00
父节点 27c33f86b3
当前提交 2949b9c58c
共有 3 个文件被更改,包括 11 次插入5 次删除

查看文件

@@ -62,7 +62,12 @@ func waitExec () {
panic("Exec failed.")
}
func newCgroupHook(p mirrorProvider, basePath, baseGroup, subsystem string, memLimit MemBytes) *cgroupHook {
func newCgroupHook(p mirrorProvider, cfg cgroupConfig, memLimit MemBytes) *cgroupHook {
var (
basePath = cfg.BasePath
baseGroup = cfg.Group
subsystem = cfg.Subsystem
)
if basePath == "" {
basePath = "/sys/fs/cgroup"
}