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

Christopher Faylor cgf@redhat.com
Tue Jan 21 16:09:00 GMT 2003


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



More information about the Cygwin-patches mailing list