[vlc-commits] LIRC: don't choke on EINTR
Rémi Denis-Courmont
git at videolan.org
Sun Jan 23 16:49:21 CET 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 23 17:46:08 2011 +0200| [cf25b55a45ec72aa89ce7089124d860a6e9b2081] | committer: Rémi Denis-Courmont
LIRC: don't choke on EINTR
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf25b55a45ec72aa89ce7089124d860a6e9b2081
---
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 fd7cbdb3..aee33c3 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