[PATCH] Re: pthread
Mon Apr 16 14:48:00 GMT 2001
----- Original Message -----
From: "Christopher Faylor" <firstname.lastname@example.org>
To: <email@example.com>; <firstname.lastname@example.org>
Sent: Tuesday, April 17, 2001 1:20 AM
Subject: Re: [PATCH] Re: pthread
> On Mon, Apr 16, 2001 at 09:06:27PM +1000, Robert Collins wrote:
> >Hi Suhaib,
> > here are the two missing functions. If you aren't setup to
> >cygwin1.dll let me know and I'll mail you mine.
> You seem to be adding a mutex that is supplanting the passwd_sem
> Shouldn't passwd_sem be eliminated if you are adding this?
No. passwd_sem is not even a real semaphore. It's simply used to stop
security.cc looking calling getpwuid when fopen is called. Passwd_sem as
a static variable has almost no overhead on access, a real semaphore or
a trylock() on the mutex in security.cc will have a performance hit.
> >Mon Apr 16 21:02:00 2001 Robert Collins <email@example.com>
> > * cygwin.din: Export New functions.
> > * passwd.cc (read_etc_passwd): Make race safe.
> > (getpwuid_r): New function.
> > (getpwnam_r): New function.
More information about the Cygwin-patches