SEMCTL fails with error 22

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

Meenakshi Pant <meenakshi.pant28 <at>> 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


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list