Merge pull request #472 from crosbymichael/fix-cgroup-error-handling

path now returns the IsNotFound error
This commit is contained in:
Victor Marmol 2015-03-23 11:40:39 -07:00
commit f8daab8a96
1 changed files with 3 additions and 4 deletions

View File

@ -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