mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
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:
@@ -99,12 +99,11 @@ func (m *Manager) Apply(pid int) error {
|
||||
// created then join consists of writing the process pids to cgroup.procs
|
||||
p, err := d.path(name)
|
||||
if err != nil {
|
||||
if cgroups.IsNotFound(err) {
|
||||
continue
|
||||
}
|
||||
return err
|
||||
}
|
||||
if !cgroups.PathExists(p) {
|
||||
continue
|
||||
}
|
||||
|
||||
paths[name] = p
|
||||
}
|
||||
m.Paths = paths
|
||||
|
||||
Reference in New Issue
Block a user