safer alternative for pfind and pget?
Jilles Tjoelker
jilles at stack.nl
Sun May 4 22:50:49 UTC 2014
On Sat, May 03, 2014 at 01:59:12PM +0400, Sergey Kandaurov wrote:
> On 3 May 2014 13:12, Mikolaj Golub <trociny at freebsd.org> wrote:
> > On Fri, May 02, 2014 at 03:36:09PM -0700, John-Mark Gurney wrote:
> >> Mateusz Guzik wrote this message on Sat, May 03, 2014 at 00:09 +0200:
> >> > - pget which provides limited (mostly negative) filtering
> >> as pget is undocumented, please make it part of this project to
> >> document it..
> > pluknet had a man page for pget long time ago, reviewed by kib. I
> > thought it was committed. Don't know why it did not happen.
> This is something I have for pget(9).
> If it is good enough, I'll commit it.
Thanks for adding this man page.
The description for PGET_NOTWEXIT is incomplete. It not only rejects
processes with P_WEXIT set, but also zombies. In other words, if
PGET_NOTWEXIT is not set, zombies are acceptable.
This is really wrong since e.g. procstat -k should work on processes
with P_WEXIT set but not on zombies, but it should probably be
documented the way it is.
--
Jilles Tjoelker
More information about the freebsd-arch
mailing list