Mail Archives: cygwin/2007/03/12/10:43:43
I have Started Cygserver Sucessfully and when i give ipcs command
i am able to get the details. Under Semaphore it shows one semaphore id with
following details:
semid semkey
65536 51397905
If i am able to create the semaphore, i.e., semget is returning
the semid but i want to know why it is failing in semctl method?
With Regards,
Neo.
----- Original Message ----
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
To: neo napster <neo_realnapster AT yahoo DOT co DOT in>
Cc: cygwin AT cygwin DOT com
Sent: Monday, 12 March, 2007 8:55:15 PM
Subject: Re: Smctl Method Returns Failure.
<http://cygwin.com/acronyms/#PCYMTWLL>. Thanks.
On Mon, 12 Mar 2007, neo napster wrote:
> We are making calls to Cygserver methods from our applications, the
> below call we are doing:
>
> semctl (int semid, int semnum, int cmd).
>
> but the Cygserver is returning Failure from this method. When we kept
> debugs in Cygserver we got the following message:
>
> -1 [22] = semctl ()
>
> Can any one suggest on this..
As Corinna mentioned, error 22 == EINVAL, which is sometimes rendered as
"Bad system call". For more details, see
<http://cygwin.com/faq/faq.programming.html#faq.programming.ipc>.
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Freedom is just another word for "nothing left to lose"... -- Janis Joplin
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -