Subj : mq_receive blocks, shouldn't To : comp.programming.threads From : Alex Murray Date : Tue Jan 18 2005 03:19 pm Hi; I have an existing queue, and I opened it with mq_open("foo", O_RDONLY | O_NONBLOCK); I'm also doing mq_setattr with an attr struct with mq_flags set to O_NONBLOCK. I'm calling mq_receive on it, and the receive call is blocking (the queue is empty). But it should just return -1 with errno set to EAGAIN, shouldn't it?!? Oh - this is on solaris 2.9. Thanks for any ideas. Alex .