This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] fix startup race in shared.cc
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Tue, 3 May 2005 21:20:15 -0400
- Subject: Re: [PATCH] fix startup race in shared.cc
- References: <d593nc$uam$1@sea.gmane.org>
- Reply-to: cygwin-patches at cygwin dot com
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