X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 31 Mar 2009 14:08:43 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: IPC,FORK on Windows 2008 Server
Message-ID: <20090331120843.GD12738@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <bc2e28c70903310234p1fa23e9esfe4e4ca8f293fbef@mail.gmail.com> <20090331112111.GB12738@calimero.vinschen.de> <bc2e28c70903310441h7f354e5br99ecf91825231227@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <bc2e28c70903310441h7f354e5br99ecf91825231227@mail.gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com



http://cygwin.com/acronyms/#TOFU


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.   Unfortunately I can still reproduce the problem once per
about 30 forks.

I'll look into fixing this for Cygwin 1.7.  However, please note that
there is no *really* foolproof method to fix this due to the way fork
has to be implemented using Win32 calls.  I can only make it much more
unlikely than today.

> I think it would tough to modify the shmget/shmat calls to mmap for my
> application.

If you need to share memory only with forked processes, it's a much
simpler solution.

> 
> I believe V 1.7 is a Beta release, Can I know when the Official release will be?

It's all in the announcement I referred you to.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

