summaryrefslogtreecommitdiff
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2000-06-18 17:59:57 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2000-06-18 17:59:57 +0000
commit3e1b0c93cbfea793e98b3b3bf7551399ede91f93 (patch)
treeb3afe1b2bd5097be03d5846b827f206f8539ac5f /usr.bin/systat
parent69a21ea0afdd021cb62f457b1cf6f2a69856ee12 (diff)
Mark kernel threads as system processes. Make ps hide them by default,
show them with -k. Do not try to show RSS based values for them as they mess up column alignment. vmstat -f now shows kernel threads separately from rforks too.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/pigs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/systat/pigs.c b/usr.bin/systat/pigs.c
index ad156fcc13f..163dbef4efa 100644
--- a/usr.bin/systat/pigs.c
+++ b/usr.bin/systat/pigs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pigs.c,v 1.5 1997/12/19 09:03:33 deraadt Exp $ */
+/* $OpenBSD: pigs.c,v 1.6 2000/06/18 17:59:55 niklas Exp $ */
/* $NetBSD: pigs.c,v 1.3 1995/04/29 05:54:50 cgd Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)pigs.c 8.2 (Berkeley) 9/23/93";
#endif
-static char rcsid[] = "$OpenBSD: pigs.c,v 1.5 1997/12/19 09:03:33 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: pigs.c,v 1.6 2000/06/18 17:59:55 niklas Exp $";
#endif /* not lint */
/*
@@ -190,7 +190,7 @@ fetchpigs()
if (namelist[X_FIRST].n_type == 0)
return;
- if ((kpp = kvm_getprocs(kd, KERN_PROC_ALL, 0, &nproc)) == NULL) {
+ if ((kpp = kvm_getprocs(kd, KERN_PROC_KTHREAD, 0, &nproc)) == NULL) {
error("%s", kvm_geterr(kd));
if (pt)
free(pt);