delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/20/01:32:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3EF29BD7.1010708@ece.gatech.edu>
Date: Fri, 20 Jun 2003 01:29:59 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030401
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [PATCH] make cygipc semaphores persistent
References: <3EF205FA DOT 5030504 AT hekimian DOT com>
In-Reply-To: <3EF205FA.5030504@hekimian.com>

Joe Buehler wrote:

> The semaphores provided by the 1.14-1 version of cygipc are not 
> persistent -- once
> all client processes close a semaphore, it disappears.  This is 
> different than standard
> UNIX semantics, in which semaphores persist until removed or system 
> reboot.  The
> attached patch fixes this, providing the standard UNIX semantics for 
> semaphore lifetime.
> (Semaphores will persist until ipc-daemon is killed).
> 
> I would appreciate it if the owner(s) of cygipc review this patch and 
> roll it in
> to the "official" distribution if it looks OK.  The basic trick is that 
> the ipc-daemon
> process needs to keep an open handle for all semaphores in a non-removed 
> state.
> It looks as though there was code in cygipc that attempted this, but it 
> was removed in
> version 1.04.
> 
> I have included a couple typo fixes in the patch also.


This patch looks right to me, given the intent.  However, I'll have to 
take your word for standard 'persistence' behavior...

I'll incorporate this patch -- but I don't want to mess with cygipc-1.15 
right now.  Let's save this for cygipc-2.x, which should come out Real 
Soon after cygwin-1.5.0.  Which itself is due RSN.

--Chuck



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