From owner-freebsd-arch@FreeBSD.ORG Sun May 4 22:50:49 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 499BC996; Sun, 4 May 2014 22:50:49 +0000 (UTC) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mailhost.stack.nl", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C72A816AC; Sun, 4 May 2014 22:22:08 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id 1041EB80B5; Mon, 5 May 2014 00:22:07 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id E555528497; Mon, 5 May 2014 00:22:06 +0200 (CEST) Date: Mon, 5 May 2014 00:22:06 +0200 From: Jilles Tjoelker To: Sergey Kandaurov Subject: Re: safer alternative for pfind and pget? Message-ID: <20140504222206.GB65318@stack.nl> References: <20140502220925.GB28158@dft-labs.eu> <20140502223609.GU43976@funkthat.com> <20140503091213.GA3876@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Mikolaj Golub , John-Mark Gurney , Mateusz Guzik , FreeBSD Arch X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 May 2014 22:50:49 -0000 On Sat, May 03, 2014 at 01:59:12PM +0400, Sergey Kandaurov wrote: > On 3 May 2014 13:12, Mikolaj Golub 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