Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore][windows][system/process]: ignore error in some cases (#184)
- Enhancement We can ignore the error in two cases: - While reading the process executable name. - For pid 4, this call fails as we can't access the executable name via the system call. Same for other kernel-level processes. - While finding the owner for a particular process. - We try to open the process token via `syscall.OpenProcessToken`and we can't access the token for protected processes , even as an administrator. it's okay to ignore these errors and move forward as we can access few other metrics (memory, cpu). More context [here](elastic/beats#40484 (comment)) Relates elastic/beats#40484
- Loading branch information