Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 1 Aug 2005 16:39:34 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.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@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20050721092307.55113.qmail@web25809.mail.ukl.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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@cygwin.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/

