LIRC: don't choke on EINTR
[vlc.git] / modules / control / lirc.c
index fd7cbdb..aee33c3 100644 (file)
@@ -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();