Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 11 Mar 2002 18:59:41 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.3.9 bug in mmap MAP_PRIVATE followed by fork Message-ID: <20020311185941.Y29574@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <15497 DOT 14523 DOT 502624 DOT 362467 AT localhost DOT localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15497.14523.502624.362467@localhost.localdomain> User-Agent: Mutt/1.3.22.1i On Fri, Mar 08, 2002 at 02:18:35PM -0800, Stephen Weeks wrote: > > I am having a problem using mmap (... MAP_PRIVATE ...) followed by > fork () in Cygwin DLL version 1.3.9. The memory allocated by mmap > does not appear to be available in the child. A small C program that > shows the problem is included below. I would expect to see the > program print > > parent hello > child hello > > but instead it prints > > parent hello > child > > I saw the thread at > > http://sources.redhat.com/ml/cygwin/2001-04/msg00829.html > > which seemed to indicate that a related problem had been fixed a while > ago, but I am still seeing something strange. I can use MAP_SHARED > instead of MAP_PRIVATE, and then everything works, but I am in a > situation where I want to use MAP_PRIVATE. This should be solved in the devlopers sources. Check out the next developers snapshot. Thanks for the test case, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/