[vlc-commits] LIRC: don't choke on EINTR
Rémi Denis-Courmont
git at videolan.org
Sun Jan 23 17:02:35 CET 2011
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 23 17:46:08 2011 +0200| [bbb16084f341a4dfd4383782805d42aead7348a4] | committer: Rémi Denis-Courmont
LIRC: don't choke on EINTR
(cherry picked from commit cf25b55a45ec72aa89ce7089124d860a6e9b2081)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=bbb16084f341a4dfd4383782805d42aead7348a4
---
modules/control/lirc.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/control/lirc.c b/modules/control/lirc.c
index 5688c97..6270abb 100644
--- a/modules/control/lirc.c
+++ b/modules/control/lirc.c
@@ -154,7 +154,10 @@ static void Run( intf_thread_t *p_intf )
/* Wait for data */
struct pollfd ufd = { .fd = p_sys->i_fd, .events = POLLIN, .revents = 0 };
if( poll( &ufd, 1, -1 ) == -1 )
- break;
+ if( errno == EINTR )
+ continue;
+ else
+ break;
/* Process */
int canc = vlc_savecancel();
More information about the vlc-commits
mailing list