dvb_local_read: ignore EAGAIN
PATCH 1/1 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é <[email protected]>
--- lib/libdvbv5/dvb-dev-local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/libdvbv5/dvb-dev-local.c +1 -1
@@ -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