浏览代码

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>
Angus Salkeld 14 年之前
父节点
当前提交
b3f940e6fc
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      common_lib/error_conversion.c

+ 1 - 0
common_lib/error_conversion.c

@@ -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: