Skip to content

Commit c1e727e

Browse files
committed
continue for pid 0
1 parent a5bfe8c commit c1e727e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

agent/agent.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ func (a *Agent) Process(w http.ResponseWriter, req *http.Request) {
6868
continue
6969
}
7070

71+
if conn.Pid == 0 {
72+
continue
73+
}
74+
7175
process, err := gopsutilProcess.NewProcess(conn.Pid)
7276
if err != nil {
7377
log.Debugf("Error occured while finding the process %s\n", err.Error())

0 commit comments

Comments
 (0)