Date: Sun, 17 Jun 2001 16:34:31 -0600 From: Chris Wasser <cwasser@v-wave.com> To: Kelly Yancey <kbyanc@posi.net> Cc: arch@FreeBSD.ORG Subject: Re: netbsd rc system diff Message-ID: <20010617163431.G582@skunkworks.arpa.mil> In-Reply-To: <Pine.BSF.4.21.0106171507560.68064-100000@gateway.posi.net>; from kbyanc@posi.net on Sun, Jun 17, 2001 at 03:12:19PM -0700 References: <20010617150050.F582@skunkworks.arpa.mil> <Pine.BSF.4.21.0106171507560.68064-100000@gateway.posi.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010617163431.G582>