aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libdvbv5/dvb-dev-local.c
diff options
context:
space:
mode:
authorRafaël Carré <funman@videolan.org>2017-11-23 12:58:28 (GMT)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-13 13:20:10 (GMT)
commitbf9101d2c308542e7872e558e278507a109341d8 (patch)
tree1465118f68d01480ec34f19cdc598b27e30381ff /lib/libdvbv5/dvb-dev-local.c
parentc63d9b56020cecfb5c61e3486ccbd7aa3a71ec27 (diff)
dvb_local_read: ignore EAGAIN
If the device has been opened with O_NONBLOCK, EAGAIN is a legitimate error Signed-off-by: Rafaël Carré <funman@videolan.org>
Diffstat (limited to 'lib/libdvbv5/dvb-dev-local.c')
-rw-r--r--lib/libdvbv5/dvb-dev-local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdvbv5/dvb-dev-local.c b/lib/libdvbv5/dvb-dev-local.c
index 687625f..97bf309 100644
--- a/lib/libdvbv5/dvb-dev-local.c
+++ b/lib/libdvbv5/dvb-dev-local.c
@@ -611,7 +611,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;
}

Privacy Policy