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 Subject: Re: Smctl Method Returns Failure. To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 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: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit 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 To: neo napster Cc: cygwin AT cygwin DOT com Sent: Monday, 12 March, 2007 8:55:15 PM Subject: Re: Smctl Method Returns Failure. . 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 . 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/