delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/09/04:30:18

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=rz0S7CA3N/hlJ0muf/WT5yxag/QmY5gayb1509NcGGXDsItk3f/kB
bzlFDULkk7vl7eHPvRXkTbFZIa3I7BNEPoH6F3IIFzbDkhhZDRCm8yGvCjvYCKUw
ubs4WqvFl9jZuUbnPQcyvdw4IfwlAnOoRf7tH5LpD/flEjeTYZ/VJk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=LkdReGcte31yT9rHYSLcMyThL94=; b=LJgpI5GBIeEl7WyYwgYQ6IPHlsSN
HAi9tAzrwRsf6KqjxFl1/2zR8Mr/5Hx2BCmKw2u1LgFZYnpT+b1c+bz7lCqw9XgN
3rIa6rBEF28yIJGaswod+O3HEEaQ3bl6Z8XbHmQo3pGzeDHbRuaSWZhqYSAzW1xT
njeKRCEEknq0QBg=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=H*M:post, H*MI:sk:56DE911, compilable, Our
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT NexGo DOT DE>
Subject: Re: Semaphore Lock Failed Error
Date: Wed, 9 Mar 2016 09:29:41 +0000 (UTC)
Lines: 20
Message-ID: <loom.20160309T102028-451@post.gmane.org>
References: <CAAeFwS3owmU++VppE_pPbX7aFcNC9a8qAvoVMLqO+jr3MAxWuQ AT mail DOT gmail DOT com> <56DE911A DOT 1010506 AT gmail DOT com> <CAAeFwS0z=rd7PHG9NEgCZqN2747j9uVQPeizFAH3x2atPaLiSQ AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Meenakshi Pant writes:
> Our program is failing in creating and acquiring lock on the
> semaphore. Created a test program 'semtest.c'. It is creating the
> semaphore using the program semaphore.c. Compiled and executed using
> the latest CYGWIN- 2.4.1. It is failing at line
> 
> if  ((semval = semctl(*id, 1, GETVAL, semctl_arg)) < 0 )
> 
> with error no 22.
> 
> Code for semtest.c and semaphore.c are attached here.

That code doesn't even come close to being compilable, so it's useless as a
test case.

Since you didn't provide cygcheck output: Is cygserver running?


Regards,
Achim.


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