* [PATCH] dvb_local_read: ignore EAGAIN
@ 2017-11-23 12:58 Rafaël Carré
0 siblings, 0 replies; only message in thread
From: Rafaël Carré @ 2017-11-23 12:58 UTC (permalink / raw)
To: linux-media; +Cc: Rafaël Carré
If the device has been opened with O_NONBLOCK, EAGAIN is a legitimate error
Signed-off-by: Rafaël Carré <funman@videolan.org>
---
lib/libdvbv5/dvb-dev-local.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libdvbv5/dvb-dev-local.c b/lib/libdvbv5/dvb-dev-local.c
index eb2f0775..a9571ca5 100644
--- a/lib/libdvbv5/dvb-dev-local.c
+++ b/lib/libdvbv5/dvb-dev-local.c
@@ -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;
}
--
2.14.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-23 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-23 12:58 [PATCH] dvb_local_read: ignore EAGAIN Rafaël Carré
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).