diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-08-14 16:41:56 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-08-14 16:41:56 +0000 |
commit | 486cc220c43de57f3d9b380b62a5bc94950750e1 (patch) | |
tree | 1a6c8170df654b3a2054448ff4183e150927023d | |
parent | baea8b96039b091f5210c7190f3cc4108c444c73 (diff) | |
download | libgtop-486cc220c43de57f3d9b380b62a5bc94950750e1.tar.gz |
*** empty log message ***
-rw-r--r-- | include/glibtop/proclist.h | 2 | ||||
-rw-r--r-- | sysdeps/freebsd/proclist.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/glibtop/proclist.h b/include/glibtop/proclist.h index d7c859b9..ed973fdd 100644 --- a/include/glibtop/proclist.h +++ b/include/glibtop/proclist.h @@ -44,6 +44,8 @@ __BEGIN_DECLS #define GLIBTOP_KERN_PROC_UID 5 #define GLIBTOP_KERN_PROC_RUID 6 +#define GLIBTOP_KERN_PROC_MASK 15 + #define GLIBTOP_EXCLUDE_IDLE 0x1000 #define GLIBTOP_EXCLUDE_SYSTEM 0x2000 #define GLIBTOP_EXCLUDE_NOTTY 0x4000 diff --git a/sysdeps/freebsd/proclist.c b/sysdeps/freebsd/proclist.c index 68d6f870..1787a603 100644 --- a/sysdeps/freebsd/proclist.c +++ b/sysdeps/freebsd/proclist.c @@ -71,6 +71,8 @@ glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf, glibtop_suid_enter (server); + which &= GLIBTOP_KERN_PROC_MASK; + /* Get the process data */ pinfo = kvm_getprocs (server->machine.kd, which, arg, &count); if ((pinfo == NULL) || (count < 1)) |