Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Joe Buehler Subject: cygipc semaphores not persistent? Date: Thu, 19 Jun 2003 11:49:30 -0400 Organization: Spirent Communications, Inc. Lines: 16 Message-ID: Reply-To: jbuehler AT hekimian DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4) Gecko/20030529 X-Accept-Language: en-us, en X-Enigmail-Version: 0.75.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime I am attempting to use cygipc for its semaphore functionality in porting some existing UNIX code. It would appear that semaphores are not persistent? The code depends on the UNIX semantic of a semaphore being a global system object that exists regardless of whether any processes are currently using it. I have processes coming and going, using the semaphore to mediate access to a disk-based queue. I have been debugging the code, and it appears that the semaphore is destroyed when no process has it open? -- Joe Buehler -- 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/