www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/26/17:37:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <031401c176ca$d8e0d850$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Charles Wilson" <cwilson AT ece DOT gatech DOT edu>,
"Michael Haubenwallner" <michael DOT haubenwallner AT salomon DOT at>
Cc: <cygwin AT cygwin DOT com>
References: <3BFD0C18 DOT 1C0161D0 AT salomon DOT at> <3C02AD85 DOT 50408 AT ece DOT gatech DOT edu>
Subject: Re: cygipc-behaviour not like FreeBSD on destroying shmid
Date: Tue, 27 Nov 2001 09:32:14 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-OriginalArrivalTime: 26 Nov 2001 22:36:48.0704 (UTC) FILETIME=[D5E3EC00:01C176CA]

----- Original Message -----
From: "Charles Wilson" <cwilson AT ece DOT gatech DOT edu>
> > Another problem might be that forking with attached shm does not
> > increment the nattch-counter, but this is not really a problem
> > for me and i suppose this might not be as simple as this one.
>
>
> I *think* that would require special code in cygwin1.dll's fork()
> implementation.  Not gonna happen -- but...there is work going on to
try
> to rewrite IPC support for cygwin.  Search the cygwin-developer
archives
> for 'cygwin daemon'.

Chuck, you can use pthread_atfork() to have a function called in your
app when fork () is called. You could call that during shmattach, and
then when you callback is triggered increment nattch..

Rob


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019