From owner-cvs-all Thu May 3 4: 7: 9 2001 Delivered-To: cvs-all@freebsd.org Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by hub.freebsd.org (Postfix) with ESMTP id 1D8E037B422; Thu, 3 May 2001 04:07:04 -0700 (PDT) (envelope-from ncbp@bank-pedersen.dk) Received: by freesbee.wheel.dk (Postfix, from userid 1002) id 71C625D60; Thu, 3 May 2001 13:07:09 +0200 (CEST) Date: Thu, 3 May 2001 13:07:09 +0200 From: "Niels Chr. Bank-Pedersen" To: David Malone Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libkvm kvm_proc.c Message-ID: <20010503130709.M17327@bank-pedersen.dk> Mail-Followup-To: "Niels Chr. Bank-Pedersen" , David Malone , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org References: <20010503025847.L17327@bank-pedersen.dk> <200105031046.aa43449@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105031046.aa43449@salmon.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Thu, May 03, 2001 at 10:46:24AM +0100 X-PGP-Fingerprint: 18D0 73F3 767F 3A40 CEBA C595 4783 D7F5 5DD1 FB8C X-PGP-Public-Key: http://freesbee.wheel.dk/~ncbp/gpgkey.pub Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, May 03, 2001 at 10:46:24AM +0100, David Malone wrote: > > Hmm, I guess I asked for trouble: > > > note# ls -l /etc/malloc.conf > > lrwxr-xr-x 1 root wheel 2 3 Maj 02:55 /etc/malloc.conf -> aj > > note# ps -p 1234 > > Floating exception (core dumped) > > Ahhh - OK - try the following! > > David. > > --- kvm_proc.c Thu May 3 10:42:48 2001 > +++ /usr/src/lib/libkvm/kvm_proc.c Wed May 2 09:31:52 2001 > @@ -411,7 +411,7 @@ > kd->procbase->ki_structsize); > return (0); > } > - nprocs = size == 0 ? 0 : size / kd->procbase->ki_structsize; > + nprocs = size / kd->procbase->ki_structsize; > } else { > struct nlist nl[4], *p; Yup, with this patch (reversed) it can't go wrong :-) monster# ps -p 1234 PID TT STAT TIME COMMAND monster# - thanks! /Niels Chr. -- Niels Christian Bank-Pedersen, NCB1-RIPE. Network Manager, TDC, IP-section. "Hey, are any of you guys out there actually *using* RFC 2549?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message