aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 01:47:15 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-04-23 02:30:45 -0300
commitb053b7fcd94987c950519a428aae96b2c300d4fb (patch)
tree7a75a7e77f7fd3990754a99901f74ab1c4279c9c
parentb5e89e57e77a0d83819a9711f92940a138f387b9 (diff)
Properly handle -EAGAIN if it ever appears at OSS driver
This patch were imported from Fedora 12 set of patches for xawtv. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--libng/plugins/snd-oss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libng/plugins/snd-oss.c b/libng/plugins/snd-oss.c
index 044048e..0ee7b03 100644
--- a/libng/plugins/snd-oss.c
+++ b/libng/plugins/snd-oss.c
@@ -441,7 +441,7 @@ oss_bufread(int fd,char *buffer,int blocksize)
for (;;) {
rc = read(fd,buffer+count,blocksize-count);
if (rc < 0) {
- if (EINTR == errno)
+ if ((EINTR == errno) || (EAGAIN == errno))
continue;
perror("oss: read");
exit(1);

Privacy Policy