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: Smctl Method Returns Failure.


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@cs.nyu.edu>
To: neo napster <neo_realnapster@yahoo.co.in>
Cc: cygwin@cygwin.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@cs.nyu.edu | igor@watson.ibm.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/


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