This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.5.17: msgrcv doesn't report error with IPC_NOWAIT if ENOMSG
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 1 Aug 2005 16:39:34 +0200
- Subject: Re: 1.5.17: msgrcv doesn't report error with IPC_NOWAIT if ENOMSG
- References: <20050721092307.55113.qmail@web25809.mail.ukl.yahoo.com>
- Reply-to: cygwin at cygwin dot com
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/