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:[EMAIL PROTECTED]
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/

Reply via email to