[PATCH] fix startup race in shared.cc

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Wed May 4 01:20:00 GMT 2005


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



More information about the Cygwin-patches mailing list