Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Mar 2004 22:16:57 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        arch@freebsd.org
Cc:        Julian Elischer <julian@elischer.org>
Subject:   Re: Questions on `pgrep' and `pkill'
Message-ID:  <p06020483bc894fd9f474@[128.113.24.47]>
In-Reply-To: <p06020481bc893b6e2b4d@[128.113.24.47]>
References:  <p0602046abc879c5fe2f9@[128.113.24.47]> <p06020481bc893b6e2b4d@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
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@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06020483bc894fd9f474>