Skip to content

Commit

Permalink
continue for pid 0
Browse files Browse the repository at this point in the history
  • Loading branch information
muraty committed Oct 12, 2020
1 parent a5bfe8c commit c1e727e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ func (a *Agent) Process(w http.ResponseWriter, req *http.Request) {
continue
}

if conn.Pid == 0 {
continue
}

process, err := gopsutilProcess.NewProcess(conn.Pid)
if err != nil {
log.Debugf("Error occured while finding the process %s\n", err.Error())
Expand Down

0 comments on commit c1e727e

Please sign in to comment.