Date: Mon, 12 Nov 2001 10:56:49 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_proc.c kern_prot.c Message-ID: <200111121856.fACIun373056@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111121856.fACIun373056>
