1
0
mirror of https://github.com/google/gops.git synced 2025-07-16 00:14:17 +02:00

ignore system process

This commit is contained in:
Yasuhiro Matsumoto
2016-11-12 21:26:51 +09:00
parent 0f5d168dd7
commit d8ff5c67b7

View File

@ -67,6 +67,10 @@ func processes() {
}
var undetermined int
for _, pr := range pss {
if pr.Pid() == 0 {
// ignore system process
continue
}
name, err := pr.Path()
if err != nil {
undetermined++