From owner-cvs-all@FreeBSD.ORG Sat Mar 27 19:00:58 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3903F16A4CE; Sat, 27 Mar 2004 19:00:58 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CD7E43D2D; Sat, 27 Mar 2004 19:00:58 -0800 (PST) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2S30vGe040839; Sat, 27 Mar 2004 19:00:57 -0800 (PST) (envelope-from gad@repoman.freebsd.org) Received: (from gad@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2S30vkR040838; Sat, 27 Mar 2004 19:00:57 -0800 (PST) (envelope-from gad) Message-Id: <200403280300.i2S30vkR040838@repoman.freebsd.org> From: Garance A Drosehn Date: Sat, 27 Mar 2004 19:00:57 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/ps ps.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 03:00:58 -0000 gad 2004/03/27 19:00:57 PST FreeBSD src repository Modified files: bin/ps ps.c Log: If is a process id that does not exist, then just print the header (if any) and exit, thus matching the behavior on -stable and other OS's. My earlier attempt to fix this (v1.65) only seemed to work because of a lucky random value in nentries (which was not being initialized back when I tested that earlier patch). Revision Changes Path 1.72 +1 -1 src/bin/ps/ps.c