From owner-cvs-all Fri Apr 12 14:17:41 2002 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 5A38037B400; Fri, 12 Apr 2002 14:17:38 -0700 (PDT) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3CLHcF92496; Fri, 12 Apr 2002 14:17:38 -0700 (PDT) (envelope-from jhb) Message-Id: <200204122117.g3CLHcF92496@freefall.freebsd.org> From: John Baldwin Date: Fri, 12 Apr 2002 14:17:38 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern sys_process.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 2002/04/12 14:17:38 PDT Modified files: sys/kern sys_process.c Log: Rework ptrace(2) to be more locking friendly. We do any needed copyin()'s and acquire the proctree_lock if needed first. Then we lock the process if necessary and fiddle with it as appropriate. Finally we drop locks and do any needed copyout's. This greatly simplifies the locking. Revision Changes Path 1.89 +114 -86 src/sys/kern/sys_process.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message