PERFORCE change 152341 for review
Peter Wemm
peter at FreeBSD.org
Sat Nov 1 18:56:50 PDT 2008
http://perforce.freebsd.org/chv.cgi?CH=152341
Change 152341 by peter at peter_overcee on 2008/11/02 01:56:41
Show non-threaded kprocs the normal way (like top does)
Affected files ...
.. //depot/projects/hammer/bin/ps/print.c#19 edit
Differences ...
==== //depot/projects/hammer/bin/ps/print.c#19 (text+ko) ====
@@ -139,7 +139,8 @@
(void)printf("%-*s", v->width, k->ki_p->ki_comm);
return;
}
- if (showthreads && (k->ki_p->ki_flag & P_SYSTEM) != 0 && k->ki_p->ki_pid != 1) {
+ if (showthreads && (k->ki_p->ki_flag & P_SYSTEM) != 0 &&
+ k->ki_p->ki_numthreads > 1) {
/* If it is the last field, then don't pad */
char *kth;
asprintf(&kth, "{%s}", k->ki_p->ki_ocomm);
More information about the p4-projects
mailing list