Semaphore Lock Failed Error
Wed Mar 9 09:29:00 GMT 2016
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
Since you didn't provide cygcheck output: Is cygserver running?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin