Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2002 17:20:48 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   RE: cvs commit: src/sys/kern sys_process.c
Message-ID:  <XFMail.20020412172048.jhb@FreeBSD.org>
In-Reply-To: <200204122117.g3CLHcF92496@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 12-Apr-2002 John Baldwin wrote:
> 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.

I've tested this on i386 lightly (gdb still works for a trivial program as far
as breakpoints and running it.)  Since gdb on alpha is busted this wasn't
tested on alpha.  :-(  I would appreciate if people would make sure I haven't
broken things.  They shouldn't be broken in theory, but practice doesn't always
== theory.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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?XFMail.20020412172048.jhb>