Skip to contentSkip to conversation

dvb_local_read: ignore EAGAIN

PATCH New Rafaël Carré 1 participant 1 message Nov 23, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dvb_local_read: ignore EAGAIN

If the device has been opened with O_NONBLOCK, EAGAIN is a legitimate error

---
 lib/libdvbv5/dvb-dev-local.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/libdvbv5/dvb-dev-local.c +1 -1
index eb2f0775..a9571ca5 100644
@@ -577,7 +577,7 @@ static ssize_t dvb_local_read(struct dvb_open_descriptor *open_dev,
 
 	ret = read(fd, buf, count);
 	if (ret == -1) {
-		if (errno != EOVERFLOW)
+		if (errno != EOVERFLOW && errno != EAGAIN)
 			dvb_perror("read()");
 		return -errno;
 	}
Signature · 1 line
2.14.1