Navigation Menu

Skip to content

Commit

Permalink
use empty string as cgroup path to grab first find
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
andrewhsu authored and thaJeztah committed Dec 7, 2018
1 parent 75c4b74 commit 78045a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion daemon/daemon_unix.go
Expand Up @@ -1484,7 +1484,7 @@ func (daemon *Daemon) initCgroupsPath(path string) error {
// for the period and runtime as this limits what the children can be set to.
daemon.initCgroupsPath(filepath.Dir(path))

mnt, root, err := cgroups.FindCgroupMountpointAndRoot("cpu")
mnt, root, err := cgroups.FindCgroupMountpointAndRoot("", "cpu")
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/sysinfo/sysinfo_linux.go
Expand Up @@ -232,7 +232,7 @@ func checkCgroupCpusetInfo(cgMounts map[string]string, quiet bool) cgroupCpusetI

// checkCgroupPids reads the pids information from the pids cgroup mount point.
func checkCgroupPids(quiet bool) cgroupPids {
_, err := cgroups.FindCgroupMountpoint("pids")
_, err := cgroups.FindCgroupMountpoint("", "pids")
if err != nil {
if !quiet {
logrus.Warn(err)
Expand Down

0 comments on commit 78045a5

Please sign in to comment.