This is the mail archive of the cygwin@cygwin.com 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: cygipc-behaviour not like FreeBSD on destroying shmid


----- Original Message -----
From: "Charles Wilson" <cwilson@ece.gatech.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/


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