소스 검색

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: