Subject: Re: CVS commit: src/sys
To: Jason Thorpe <thorpej@wasabisystems.com>
From: David Laight <david@l8s.co.uk>
List: source-changes
Date: 12/14/2003 08:06:17
On Sat, Dec 13, 2003 at 06:32:01PM -0800, Jason Thorpe wrote:
>
> On Dec 13, 2003, at 5:59 PM, Simon Burge wrote:
>
> Thus spake David Laight:
>
> >> If it can sleep while traversing the process list, then the process
> >> it is referencing can exit and the pointer becomes invalid.
> >> Which would mean that it can't use allprocs to act on all processes.
>
> Uh, doesn't this ktrace path always operate on the current process?
> How could the current process exit in this case?
The process list is locked because the code is traversing the pid
list (or has looked a pid up by id) - hence it is acting on a
different process....
David
--
David Laight: david@l8s.co.uk