MCPcopy Create free account
hub / github.com/containerd/cgroups / checkExists

Method checkExists

cgroup1/cgroup.go:562–575  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

560}
561
562func (c *cgroup) checkExists() {
563 for _, s := range pathers(c.subsystems) {
564 p, err := c.path(s.Name())
565 if err != nil {
566 return
567 }
568 if _, err := os.Lstat(s.Path(p)); err != nil {
569 if os.IsNotExist(err) {
570 c.err = ErrCgroupDeleted
571 return
572 }
573 }
574 }
575}

Callers 1

StateMethod · 0.95

Calls 3

pathersFunction · 0.85
NameMethod · 0.65
PathMethod · 0.65

Tested by

no test coverage detected