From 639997db3836906fcc85749c72af43b1ae3af36d Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sat, 15 Aug 2020 16:55:55 +0800 Subject: [PATCH] Chore: cache process name when resolve failed (#900) --- rules/process_darwin.go | 1 - rules/process_freebsd_amd64.go | 1 - 2 files changed, 2 deletions(-) diff --git a/rules/process_darwin.go b/rules/process_darwin.go index 1b18a006..0ff8960d 100644 --- a/rules/process_darwin.go +++ b/rules/process_darwin.go @@ -36,7 +36,6 @@ func (ps *Process) Match(metadata *C.Metadata) bool { name, err := getExecPathFromAddress(metadata) if err != nil { log.Debugln("[%s] getExecPathFromAddress error: %s", C.Process.String(), err.Error()) - return false } processCache.Set(key, name) diff --git a/rules/process_freebsd_amd64.go b/rules/process_freebsd_amd64.go index c719b3a4..40e7a5fc 100644 --- a/rules/process_freebsd_amd64.go +++ b/rules/process_freebsd_amd64.go @@ -35,7 +35,6 @@ func (ps *Process) Match(metadata *C.Metadata) bool { name, err := getExecPathFromAddress(metadata) if err != nil { log.Debugln("[%s] getExecPathFromAddress error: %s", C.Process.String(), err.Error()) - return false } processCache.Set(key, name)