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: 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 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 Subject: Re: Semaphore Lock Failed Error Date: Wed, 9 Mar 2016 09:29:41 +0000 (UTC) Lines: 20 Message-ID: References: <56DE911A DOT 1010506 AT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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