Treat ENOMSG as TRY_AGAIN.

ENOMSG is returned by the ringbuffer when you attempt to read
a message and there is nothing there to read.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
Angus Salkeld 2012-03-05 22:10:02 +11:00
parent e6aab06573
commit b3f940e6fc

View File

@ -52,6 +52,7 @@ cs_error_t qb_to_cs_error (int result)
case ENOMEM:
err = CS_ERR_NO_MEMORY;
break;
case ENOMSG:
case ENOBUFS:
case ETIMEDOUT:
case EAGAIN: