www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/06/16:28:27

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 6 Oct 2010 22:27:42 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin >= 1.7.6 open message queues - permission denied
Message-ID: <20101006202742.GA5480@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0C11C5BF0B29FD43A8D0250F711D497F7F6639775F AT ex01-ubitronix DOT ubitronix DOT local> <20101006112133 DOT GT5480 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20101006112133.GT5480@calimero.vinschen.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Oct  6 13:21, Corinna Vinschen wrote:
> On Oct  6 10:13, Manuel Wienand wrote:
> > Hi,
> > 
> > I noticed that I get a permission denied error when I try to open a message queue in the same process or
> > in an other process.
> > The problem can be reproduced using the code given at: http://sourceware.org/ml/cygwin/2009-09/msg00629.html
> 
> Confirmed.  I'll investigate.

Fixed in CVS.  While debugging I found a subtile synchronization problem
in the message queue implementation which apparently never was a problem
in W. Richard Stevens original implementation.  Under some circumstances
a deadlock could occur because the Windows scheduler didn't give any
time to another process waiting for the same event object.  I fixed that
now by splitting the single event object which was used to signal both,
a full as well as an empty queue. into two separate event objects.  So,
that's why the fix took a while longer than anticipated.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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