Merge pull request #472 from crosbymichael/fix-cgroup-error-handling
path now returns the IsNotFound error
This commit is contained in:
commit
f8daab8a96
|
@ -99,12 +99,11 @@ func (m *Manager) Apply(pid int) error {
|
||||||
// created then join consists of writing the process pids to cgroup.procs
|
// created then join consists of writing the process pids to cgroup.procs
|
||||||
p, err := d.path(name)
|
p, err := d.path(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if cgroups.IsNotFound(err) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if !cgroups.PathExists(p) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
paths[name] = p
|
paths[name] = p
|
||||||
}
|
}
|
||||||
m.Paths = paths
|
m.Paths = paths
|
||||||
|
|
Loading…
Reference in New Issue