This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: IPC,FORK on Windows 2008 Server

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.   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 applied a patch to Cygwin which allocates the shmat() shared memory
regions top-down, same as the mmap() regions.  This should make the
observed effect at fork() pretty unlikely.  The patch will be in the
next Cygwin 1.7.0 test release (in a couple of days).

Thanks for the report,

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

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]