From c099a20eb8bd084c17d9348bd0f6bef066ea514f Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Mon, 23 Mar 2015 11:32:09 -0700 Subject: [PATCH] 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 --- cgroups/fs/apply_raw.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cgroups/fs/apply_raw.go b/cgroups/fs/apply_raw.go index f6c0d7d5..5cb8467c 100644 --- a/cgroups/fs/apply_raw.go +++ b/cgroups/fs/apply_raw.go @@ -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