Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



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@localhost



Home | Main Index | Thread Index | Old Index