Date: Sun, 2 Apr 2000 16:35:53 -0700 From: Alfred Perlstein <bright@wintelcom.net> To: Matt Dillon <dillon@FreeBSD.org> Cc: current@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/i386 support.s src/sys/kern init_sysent.c kern_prot.c kern_sig.c Message-ID: <20000402163552.P21029@fw.wintelcom.net> In-Reply-To: <200004021752.KAA13175@freefall.freebsd.org>; from dillon@FreeBSD.org on Sun, Apr 02, 2000 at 10:52:44AM -0700 References: <200004021752.KAA13175@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Matt Dillon <dillon@FreeBSD.org> [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 - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000402163552.P21029>