diff --git a/pkg/util/procfs/procfs.go b/pkg/util/procfs/procfs.go index 94a751562d..25530f86ef 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