delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/07/02:01:14

X-Spam-Check-By: sourceware.org
X-YMail-OSG: VukZ6dMVM1knlVxGBDqdFe61lACS1Juu7fHA.sOVxIhfYAxdAZ350PQFh08cJ4pqTy0khHgUuGglswSFthHuqvIWLmKB_nqHuMcWBUl0fwkPgTIgij7lcxJyrc7eAnbIC02fHaryKfZEsUDSaNAJGTrW.Q--
X-Mailer: YahooMailRC/471 YahooMailWebService/0.6.132.8
Date: Wed, 7 Mar 2007 12:30:36 +0530 (IST)
From: neo napster <neo_realnapster AT yahoo DOT co DOT in>
Subject: Re: Difference Between CYGIPC And CYGServer
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <569175.81921.qm@web7606.mail.in.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l2770x4O016687

All,

After goining through the code of shm.h and shm.c of Cygipc V1.09 that we are using, 
we have noticed that in function ShmCtl we have introduced logic to do the following:

1. Detach all PIDs from the passed Shared Memory Id.
2. Detach the PID of the process calling this function from all the shared memories 
    present in the system.
3. Detach all dead PIDs from the passed Shared Memory Id, if they are left unattached
    before dying.
4. Detach all dead PIDs from all the Shared Memories persent in the system, if they 
    are left unattached before dying.

If we use Cygserver, can we achive these without making chages to cygserver code. 
We would rather be comfortable changing our application code. Can we achieve these 
by calling Shmdt function from our application?

Thanks,
Neo.



----- Original Message ----
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Sent: Tuesday, 6 March, 2007 2:12:02 PM
Subject: Re: Difference Between CYGIPC And CYGServer


On Mar  6 10:46, neo napster wrote:
> When compiling we are getting the following error:
> 
> apitest.c:28:31: ipc.h: No such file or directory
> apitest.c:29:31: shm.h: No such file or directory

These files are under sys, so you have to include sys/ipc.h, sys/shm.h,
etc., as required by SUSv3.


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/


		
___________________________________________________________ 
All New Yahoo! Mail – Tired of unwanted email come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html

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


- Raw text -


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