This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Races in group/passwd code (was Re: etc_changed, passwd & group)


On Tue, Jan 21, 2003 at 10:53:29AM -0500, Pierre A. Humblet wrote:
>Christopher Faylor wrote:
>This has been there forever, I would not delay the release of 1.3.19

Did I say I was delaying anything?

>By the way, I wrote the internal_get{pw,gr} routines having in mind
>that they could be extended to handle those multiple access issues,

>avoiding to have to set and release locks in routines outside of
>passwd.cc and group.cc (with a few exceptions).

You'd need a per-thread buffer to accomplish that.  I assume that
is what you had in mind.

For the record, the current code isn't even signal safe, AFAICT.
I really should have dealt with this a while ago.  I wonder how
many inexplicable "cygwin hangs" issues this is responsible for.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]