Re: SEMCTL fails with error 22

2016-03-19 Thread Meenakshi Pant
, 2016 at 5:45 PM, Marco Atzeri wrote: > On 11/03/2016 12:50, Meenakshi Pant wrote: >> >> Hi >> >> Attached the file cygcheck.out. >> Downloaded CYGWIN for 32 bit. Tested in both 32 and 64 bit. Getting >> the same problem. >> > > > As you ha

Re: SEMCTL fails with error 22

2016-03-11 Thread Meenakshi Pant
OK xproto7.0.28-1 OK xz5.2.2-1OK zlib-devel1.2.8-3OK zlib0 1.2.8-3OK Thanks On Fri, Mar 11, 2016 at 3:49 PM, Meenakshi Pant wrote: &g

SEMCTL fails with error 22

2016-03-11 Thread Meenakshi Pant
Hi, My program creates a semaphore, but moving further the SEMCTL function is failing with error 22 with the latest CYGWIN 2.4. The cygserver is up. Below is the simplified code as a test case.It fails with the same error as my original program. /* semtest.c - program to test semaphore */ #incl

Re: Semaphore Lock Failed Error

2016-03-09 Thread Meenakshi Pant
bin, etc...) to another directory along with my programs. >From my work area folder the cygcheck output is shown as incomplete for many packages. Attached here are the cgycheck outputs from my installation and work areas. Thanks, Meenakshi On Wed, Mar 9, 2016 at 2:08 PM, Meenakshi Pant wrote: &

Re: Semaphore Lock Failed Error

2016-03-09 Thread Meenakshi Pant
*** * Name:SemOp * * Function: * * Input: id - the identifier of this semaphore. * * Output: none. * * Return: SUCCESS or FAIL * * Side Effects:none * * Procedure: 1. * 2. * 3. **

Re: Semaphore Lock Failed Error

2016-03-09 Thread Meenakshi Pant
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

Semaphore Lock Failed Error

2016-03-08 Thread Meenakshi Pant
Hi, Our program tries open and lock a semaphore. With an older version of CYGWIN(1.7.0-58) it is successfully able to acquire lock on the semaphore while it is failing to do so with the latest version (02.4.1). Error message is 'Semaphore Lock failed'. This error could also occur if ther