* Matt Dillon <[EMAIL PROTECTED]> [000402 11:18] wrote:
> dillon      2000/04/02 10:52:44 PDT
> 
>   Modified files:
>     sys/i386/i386        support.s 
>     sys/kern             init_sysent.c kern_prot.c kern_sig.c 
>   Log:
>       Make the sigprocmask() and geteuid() system calls MP SAFE.  Expand
>       commentary for copyin/copyout to indicate that they are MP SAFE as
>       well.

Along with snagging the "easy ones" for MP safeness, shouldn't getpid
be MP safe?  The struct proc is allocated from the proc_zone, and
afaik zalloc allows for stable storage meaning it's safe to dereference
the ppid pointer once the entire struct proc is populated, which needs
to happen before the process can even call getpid().

phk seems to agree.

-- 
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to