X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_34,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20090331150728.GE12738@calimero.vinschen.de> References: <20090331112111 DOT GB12738 AT calimero DOT vinschen DOT de> <20090331120843 DOT GD12738 AT calimero DOT vinschen DOT de> <20090331150728 DOT GE12738 AT calimero DOT vinschen DOT de> Date: Wed, 1 Apr 2009 11:19:28 +0530 Message-ID: Subject: Re: IPC,FORK on Windows 2008 Server From: Yarlagadda Suresh To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Thanks a ton for your quick response. Could please let me know the patch version number, which includes the fix? Cheers, Suresh Kumar. On Tue, Mar 31, 2009 at 8:37 PM, Corinna Vinschen wrote: > On Mar 31 14:08, Corinna Vinschen wrote: >> On Mar 31 17:11, Yarlagadda Suresh wrote: >> > Hi, >> > >> > I am using shmget()/shmat() methods for getting the shared memory. >> > >> > I had tried running the same program which is given in the previous >> > mention thread, the results are same as mentioned over there. >> >> I just tried that testcase with Cygwin 1.7 and it appears to work most >> of the time. =A0 Unfortunately I can still reproduce the problem once per >> about 30 forks. >> >> I'll look into fixing this for Cygwin 1.7. =A0However, please note that >> there is no *really* foolproof method to fix this due to the way fork >> has to be implemented using Win32 calls. =A0I can only make it much more >> unlikely than today. > > I applied a patch to Cygwin which allocates the shmat() shared memory > regions top-down, same as the mmap() regions. =A0This should make the > observed effect at fork() pretty unlikely. =A0The patch will be in the > next Cygwin 1.7.0 test release (in a couple of days). > > > Thanks for the report, > Corinna > > -- > Corinna Vinschen =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Please, send mails re= garding Cygwin to > Cygwin Project Co-Leader =A0 =A0 =A0 =A0 =A0cygwin AT cygwin DOT com > Red Hat > > -- > Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple > Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html > Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html > FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/