From owner-cvs-all Mon Nov 12 10:56:54 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BE40B37B416; Mon, 12 Nov 2001 10:56:49 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fACIun373056; Mon, 12 Nov 2001 10:56:49 -0800 (PST) (envelope-from jhb) Message-Id: <200111121856.fACIun373056@freefall.freebsd.org> From: John Baldwin Date: Mon, 12 Nov 2001 10:56:49 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_proc.c kern_prot.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2001/11/12 10:56:49 PST Modified files: sys/kern kern_proc.c kern_prot.c Log: Clean up breakage in inferior() I introduced in 1.92 of kern_proc.c: - Restore inferior() to being iterative rather than recursive. - Assert that the proctree_lock is held in inferior() and change the one caller to get a shared lock of it. This also ensures that we hold the lock after performing the check so the check can't be made invalid out from under us after the check but before we act on it. Requested by: bde Revision Changes Path 1.103 +8 -10 src/sys/kern/kern_proc.c 1.121 +3 -0 src/sys/kern/kern_prot.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message