summaryrefslogtreecommitdiff
path: root/sysdeps/freebsd
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/freebsd')
-rw-r--r--sysdeps/freebsd/proclist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/freebsd/proclist.c b/sysdeps/freebsd/proclist.c
index 80dd9fd8..898f9d4d 100644
--- a/sysdeps/freebsd/proclist.c
+++ b/sysdeps/freebsd/proclist.c
@@ -143,6 +143,9 @@ glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
glibtop_get_proc_state_p (server, &procstate, pid);
if (procstate.flags & (1L << GLIBTOP_PROC_STATE_STATE))
if (procstate.state != GLIBTOP_PROCESS_RUNNING) continue;
+
+ if (pinfo[i].ki_ppid == 0 && !strcmp(pinfo[i].ki_comm, "idle"))
+ continue;
}
if (which & GLIBTOP_EXCLUDE_SYSTEM)