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/