Index: kern/kern_proc.c =================================================================== RCS file: /cvs/DragonFly/src/sys/kern/kern_proc.c,v retrieving revision 1.15 diff -u -p -u -r1.15 kern_proc.c --- kern/kern_proc.c 10 Jun 2004 22:11:35 -0000 1.15 +++ kern/kern_proc.c 17 Jul 2004 14:58:33 -0000 @@ -600,8 +600,12 @@ sysctl_kern_proc(SYSCTL_HANDLER_ARGS) * its thread list. In the last loop we migrate back to our original * cpu. */ + if (!ps_showallthreads && (cr1->cr_prison || cr1->cr_uid != 0)) { + return (0); + } + origcpu = mycpu->gd_cpuid; - for (n = 1; ps_showallthreads && n <= ncpus; ++n) { + for (n = 1; n <= ncpus; ++n) { globaldata_t rgd; int nid;