Skip to content

Commit

Permalink
🐛 fix listing of windows processes (#2541)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Nov 9, 2023
1 parent 4fecd53 commit 99fb509
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion providers/os/resources/processes/ps1getprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,7 @@ func (wpm *WindowsProcessManager) Process(pid int64) (*OSProcess, error) {
}

func (wpm *WindowsProcessManager) ListSocketInodesByProcess() (map[int64]plugin.TValue[[]int64], error) {
return nil, errors.New("not implemented")
// This function is always invoked when listing processes (for unix and windows). If we return an error
// here, we break process listing. Instead we return an empty map
return map[int64]plugin.TValue[[]int64]{}, nil
}

0 comments on commit 99fb509

Please sign in to comment.