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: [PATCH] fix startup race in shared.cc


On Tue, May 03, 2005 at 05:11:44PM -0700, Usman Muzaffar wrote:
>Still seeing incorrect "version mismatch" messages for processes
>starting simultaneously on dual-processor systems; I believe this
>patch to the recent locking work in shared.cc fixes the "user shared
>memory version" errors I'm seeing.

I don't believe that your patch goes far enough to ensure the
consistency of the shared memory before checking things.  I've checked
in a change which should ensure that the area has been initialized
before it is used.

Thanks for the patch and for pointing to the location of the problem.

cgf


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