From owner-freebsd-arch@FreeBSD.ORG Thu Mar 25 19:17:34 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA86C16A4CE for ; Thu, 25 Mar 2004 19:17:34 -0800 (PST) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6322343D2D for ; Thu, 25 Mar 2004 19:17:34 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp4.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i2Q3GwoP027396; Thu, 25 Mar 2004 22:16:58 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: Date: Thu, 25 Mar 2004 22:16:57 -0500 To: arch@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) cc: Julian Elischer Subject: Re: Questions on `pgrep' and `pkill' X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 03:17:34 -0000 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