From owner-freebsd-arch Fri Jun 22 20:24: 8 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mail.noos.fr (descartes.noos.net [212.198.2.74]) by hub.freebsd.org (Postfix) with ESMTP id 3081537B407 for ; Fri, 22 Jun 2001 20:24:00 -0700 (PDT) (envelope-from clefevre@redirect.to) Received: (qmail 7561468 invoked by uid 0); 23 Jun 2001 03:23:58 -0000 Received: from unknown (HELO gits.dyndns.org) ([212.198.231.187]) (envelope-sender ) by 212.198.2.74 (qmail-ldap-1.03) with SMTP for ; 23 Jun 2001 03:23:58 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.4/8.11.4) id f5LJt4k11924; Thu, 21 Jun 2001 21:55:04 +0200 (CEST) (envelope-from clefevre@redirect.to) To: Chris Wasser Cc: Kelly Yancey , arch@FreeBSD.ORG Subject: Re: netbsd rc system diff References: <20010617150050.F582@skunkworks.arpa.mil> <20010617163431.G582@skunkworks.arpa.mil> X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C Reply-To: Cyrille Lefevre In-Reply-To: <20010617163431.G582@skunkworks.arpa.mil> Mail-Copies-To: never From: Cyrille Lefevre Date: 21 Jun 2001 21:55:02 +0200 Message-ID: <8zilfw15.fsf@gits.dyndns.org> Lines: 24 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Chris Wasser writes: > On Sun 17 Jun 2001, Kelly Yancey wrote: [snip] > > 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 :) this fork an unneeded process and I'm not sure this speed up things. the test should suffice. Cyrille. -- home: mailto:clefevre@redirect.to UNIX is user-friendly; it's just particular work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends with. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message