From owner-cvs-sys Sat Jun 15 00:09:33 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA03894 for cvs-sys-outgoing; Sat, 15 Jun 1996 00:09:33 -0700 (PDT) Received: (from peter@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA03750; Sat, 15 Jun 1996 00:08:04 -0700 (PDT) Date: Sat, 15 Jun 1996 00:08:04 -0700 (PDT) From: Peter Wemm Message-Id: <199606150708.AAA03750@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/ddb db_ps.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 96/06/15 00:08:04 Modified: sys/ddb db_ps.c Log: A small bit of defensive programming in case the panic is during process exit and cleanup. the 'ps' command assumes that there are always 'nproc' processes on the lists and will walk off the end without checking if not, causing ddb to trap during the 'ps' command. Revision Changes Path 1.12 +5 -1 src/sys/ddb/db_ps.c