func GetPids(c *cgroups.Cgroup) ([]int, error) { path, err := getSubsystemPath(c, "cpu") if err != nil { return nil, err } return cgroups.ReadProcsFile(path) }
func GetPids(c *cgroups.Cgroup) ([]int, error) { d, err := getCgroupData(c, 0) if err != nil { return nil, err } dir, err := d.path("devices") if err != nil { return nil, err } return cgroups.ReadProcsFile(dir) }