delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/01/10:39:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Mon, 1 Aug 2005 16:39:34 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.17: msgrcv doesn't report error with IPC_NOWAIT if ENOMSG
Message-ID: <20050801143934.GE15968@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20050721092307 DOT 55113 DOT qmail AT web25809 DOT mail DOT ukl DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20050721092307.55113.qmail@web25809.mail.ukl.yahoo.com>
User-Agent: Mutt/1.4.2i

On Jul 21 10:23, Marek Prochazka wrote:
> Hi all,
> 
> msgrcv deosn't return -1 if IPC_NOWAIT flag is used and no message of
> desired type is in the queue.
> 
> However, in such a case errno is set to ENOMSG as it should be.

I can't reproduce this.  My testcase returns -1 and ENOMSG just fine.
I also inspected the message queue related source code which is basically
the same running on FreeBSD.  I don't see how it should be able to
return something other than -1 in this case.  If you're still sure there's
a bug somewhere, please provide a reproducible, minimal testcase.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
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