This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: libdvbv5: Rewrite non portable select loop
Author:  Gregor Jasny <[email protected]>
Date:    Mon Jun 18 19:01:34 2012 +0200

Signed-off-by: Gregor Jasny <[email protected]>

 lib/libdvbv5/dvb-scan.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=adf44ffc70303f648ae2908ec6c95d4ea4e51aea

diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c
index e0a546c..f591f8e 100644
--- a/lib/libdvbv5/dvb-scan.c
+++ b/lib/libdvbv5/dvb-scan.c
@@ -298,6 +298,7 @@ static int poll(int filedes, unsigned int seconds)
 {
        fd_set set;
        struct timeval timeout;
+       int ret;
 
        /* Initialize the file descriptor set. */
        FD_ZERO (&set);
@@ -308,9 +309,10 @@ static int poll(int filedes, unsigned int seconds)
        timeout.tv_usec = 0;
 
        /* `select' returns 0 if timeout, 1 if input available, -1 if error. */
-       return TEMP_FAILURE_RETRY (select (FD_SETSIZE,
-                                               &set, NULL, NULL,
-                                               &timeout));
+       do ret = select (FD_SETSIZE, &set, NULL, NULL, &timeout);
+       while (ret == -1 && errno == EINTR);
+
+       return ret;
 }
 
 

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to