Questions on `pgrep' and `pkill'

Garance A Drosihn drosih at rpi.edu
Thu Mar 25 19:17:34 PST 2004


At 9:05 PM -0500 3/25/04, Garance A Drosihn wrote:
>
>This wasn't the behavior I would expect.  Are there some other
>flag(s) I should be checking for whatever these commands are
>using P_SYSTEM for?  (I think we'll all be better off if I
>don't try to become a kernel developer to answer this...)

Of course, that won't stop me from guessing...
The man page says:

      Note that a running pgrep or pkill process will never
      consider itself nor system processes (kernel threads)
      as a potential match.

If I switch the P_SYSTEM check to P_KTHREAD, I get results that
seem to be more reasonable to me...

-- 
Garance Alistair Drosehn            =   gad at gilead.netel.rpi.edu
Senior Systems Programmer           or  gad at freebsd.org
Rensselaer Polytechnic Institute    or  drosih at rpi.edu


More information about the freebsd-arch mailing list