Skip to content

Commit

Permalink
Chore: cache process name when resolve failed (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr328 authored Aug 15, 2020
1 parent 8b7c731 commit 50d778d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion rules/process_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion rules/process_freebsd_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50d778d

Please sign in to comment.