delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/12/10:43:43

X-Spam-Check-By: sourceware.org
X-YMail-OSG: K2qo0scVM1mVKXvjbXlNGW0vOkGfVO8DjBzdpLG0ZHpMwKtt4X_me2.6v4dDELmqv3MPI1DdSbugaS7taxc.VObJ6Qun8nhA_uviq9MBA.q_l2GwwiXTySSFRDDe2ANR
X-Mailer: YahooMailRC/471 YahooMailWebService/0.6.132.8
Date: Mon, 12 Mar 2007 21:13:13 +0530 (IST)
From: neo napster <neo_realnapster AT yahoo DOT co DOT in>
Subject: Re: Smctl Method Returns Failure.
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <854453.5992.qm@web7615.mail.in.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l2CFhWFt015465

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019