pfind() and the proc structure

Roman Divacky rdivacky at freebsd.org
Tue Apr 1 07:33:07 PDT 2008


On Tue, Apr 01, 2008 at 07:23:58AM -0700, Rao, Nikhil wrote:
> 
> Ok, I should have caught that :-( Another question - 
> Now that the PROC_LOCK on p is obtained the all_proc lock is released
> and the function returns, at this point can't the proc get deallocated ?

well.. thats why you hold the proc lock, isnt it? :)


More information about the freebsd-hackers mailing list