Create the cgroup
(ctr *CgroupControl)
| 34 | |
| 35 | // Create the cgroup |
| 36 | func (c *pidHandler) Create(ctr *CgroupControl) (bool, error) { |
| 37 | if ctr.cgroup2 { |
| 38 | return false, nil |
| 39 | } |
| 40 | return ctr.createCgroupDirectory(Pids) |
| 41 | } |
| 42 | |
| 43 | // Destroy the cgroup |
| 44 | func (c *pidHandler) Destroy(ctr *CgroupControl) error { |
nothing calls this directly
no test coverage detected