Date: Mon, 5 May 2014 00:22:06 +0200 From: Jilles Tjoelker <jilles@stack.nl> To: Sergey Kandaurov <pluknet@freebsd.org> Cc: Mikolaj Golub <trociny@freebsd.org>, John-Mark Gurney <jmg@funkthat.com>, Mateusz Guzik <mjguzik@gmail.com>, FreeBSD Arch <freebsd-arch@freebsd.org> Subject: Re: safer alternative for pfind and pget? Message-ID: <20140504222206.GB65318@stack.nl> In-Reply-To: <CAE-mSO%2B7=0wkowLKse_KwsE7yMMETv_MDifgX5RgCt0LTTotCA@mail.gmail.com> References: <20140502220925.GB28158@dft-labs.eu> <20140502223609.GU43976@funkthat.com> <20140503091213.GA3876@gmail.com> <CAE-mSO%2B7=0wkowLKse_KwsE7yMMETv_MDifgX5RgCt0LTTotCA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 03, 2014 at 01:59:12PM +0400, Sergey Kandaurov wrote: > On 3 May 2014 13:12, Mikolaj Golub <trociny@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140504222206.GB65318>