path now returns the IsNotFound error
This error is not propogated up to the caller and needs to be handled at the site where d.path() is called. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
5c6332687d
commit
c099a20eb8
|
@ -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 {
|
||||||
return err
|
if cgroups.IsNotFound(err) {
|
||||||
}
|
|
||||||
if !cgroups.PathExists(p) {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
paths[name] = p
|
paths[name] = p
|
||||||
}
|
}
|
||||||
m.Paths = paths
|
m.Paths = paths
|
||||||
|
|
Loading…
Reference in New Issue