This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SEMCTL fails with error 22


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]