From owner-cvs-all Tue May 1 15:42:34 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 205AD37B423; Tue, 1 May 2001 15:42:28 -0700 (PDT) (envelope-from ncbp@bank-pedersen.dk) Received: by freesbee.wheel.dk (Postfix, from userid 1002) id 192995D74; Wed, 2 May 2001 00:42:27 +0200 (CEST) Date: Wed, 2 May 2001 00:42:27 +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: <20010502004226.K17327@bank-pedersen.dk> Mail-Followup-To: "Niels Chr. Bank-Pedersen" , David Malone , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org References: <200105011034.f41AYGQ01813@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105011034.f41AYGQ01813@freefall.freebsd.org>; from dwmalone@FreeBSD.org on Tue, May 01, 2001 at 03:34:16AM -0700 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 Tue, May 01, 2001 at 03:34:16AM -0700, David Malone wrote: > dwmalone 2001/05/01 03:34:16 PDT > > Modified files: > lib/libkvm kvm_proc.c > Log: > Don't give a warning about "proc size mismatch" if no struct were > returned. (This arose on a list about a month ago when someone > found bogus warnings if they used "ps -Uuser_with_no_processes".) Removing the check for size=0 fixes kvm_getprocs in the case, but unfortunately causes a coredump when the caller requests a nonexisting PID: note% ps -p 1234 Floating exception (core dumped) Don't know how this should be fixed, though. /Niels Chr. -- Niels Christian Bank-Pedersen, NCB1-RIPE. "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