Date: Sun, 2 Nov 2008 01:56:49 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 152341 for review Message-ID: <200811020156.mA21unFf071836@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152341 Change 152341 by peter@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811020156.mA21unFf071836>