From 24e8e12b0491186a8b7858eca71f38f8c80b61c0 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Thu, 11 Aug 2016 17:33:59 -0400 Subject: [PATCH] Fix TestPidOf {procfs} - Take #2 We should not bailout when we get an error. We should continue processing other files/directories. We were returning the err passed in which was causing the processing to stop. Fixes #30377 --- pkg/util/procfs/procfs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/util/procfs/procfs.go b/pkg/util/procfs/procfs.go index 94a751562d5..25530f86ef6 100644 --- a/pkg/util/procfs/procfs.go +++ b/pkg/util/procfs/procfs.go @@ -66,7 +66,8 @@ func PidOf(name string) []int { pids := []int{} filepath.Walk("/proc", func(path string, info os.FileInfo, err error) error { if err != nil { - return err + // We should continue processing other directories/files + return nil } base := filepath.Base(path) // Traverse only the directories we are interested in