questions on kern.ps_showallthreads

Devon H. O'Dell dodell at sitetronics.com
Sat Jul 17 09:06:05 PDT 2004


Simon 'corecode' Schubert wrote:

On 17.07.2004, at 13:42, Devon H. O'Dell wrote:

This probably isn't the most clean fix for this problem (it'd be nice  
to put it in the comparison section of the for (;;) loop), but the  
following diff should fix this problem.

--Devon
This might introduce unwanted visibility in jail()ed parts of the  
system. Maybe
        if (!ps_showallthreads || suser_proc(p))
would be a better solution. Untested, no warranty included.

cheers
  simon
Hiten has a revised patch at 
http://leaf.dragonflybsd.org/~hmp/ps_allthreads.diff that seems to work 
well.

--Devon





More information about the Kernel mailing list