From owner-freebsd-arch Sun Jun 17 15:34:43 2001 Delivered-To: freebsd-arch@freebsd.org Received: from area51.v-wave.com (area51.v-wave.com [24.108.173.252]) by hub.freebsd.org (Postfix) with SMTP id 6F76637B409 for ; Sun, 17 Jun 2001 15:34:32 -0700 (PDT) (envelope-from flatline@area51.v-wave.com) Received: (qmail 38631 invoked by uid 1001); 17 Jun 2001 22:34:31 -0000 Date: Sun, 17 Jun 2001 16:34:31 -0600 From: Chris Wasser To: Kelly Yancey Cc: arch@FreeBSD.ORG Subject: Re: netbsd rc system diff Message-ID: <20010617163431.G582@skunkworks.arpa.mil> References: <20010617150050.F582@skunkworks.arpa.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from kbyanc@posi.net on Sun, Jun 17, 2001 at 03:12:19PM -0700 X-Operating-System: FreeBSD 4.2-STABLE i386 X-Subliminal: On the count of 3, you will bark like a dog. 1.. 2.. 3.. Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun 17 Jun 2001, Kelly Yancey wrote: > On Sun, 17 Jun 2001, Chris Wasser wrote: > > > b) some processes use setproctitle(3) to change how the process > > report will show up in a report, to overcome this problem, we > > sort the process report so that () and // are placed first in the > > report, reducing potential false positive matches: > > > > # ps -ax -o 'pid,command' | sort +1 > > > > Minor nit: would you mind running the ps output through tail first to trim > off the header. It doesn't correlate well in the sorted output. > > # ps -ax -o 'pid,command' | tail +2 | sort +1 > That would remove the check in rc.subr for the header: if [ "$_npid" = "PID" ]; then continue fi Seems like a good idea to me :) -Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message