SEMCTL fails with error 22

Achim Gratz Stromeko@NexGo.DE
Fri Mar 11 10:38:00 GMT 2016


Meenakshi Pant <meenakshi.pant28 <at> gmail.com> writes:
> 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.

WJFFM with cygserver running.

> ./semtest

 Semaphore Test
 Semaphore created successfully  65536
 Value before errno = 0Semaphore 1492 initialized.

And no error 22 either when not running cygserver.

 > ./semtest

 Semaphore Test
 Unable to obtain semaphore 88


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



More information about the Cygwin mailing list