Commit cf25b55a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

LIRC: don't choke on EINTR

parent e1ad2bf9
...@@ -154,7 +154,10 @@ static void Run( intf_thread_t *p_intf ) ...@@ -154,7 +154,10 @@ static void Run( intf_thread_t *p_intf )
/* Wait for data */ /* Wait for data */
struct pollfd ufd = { .fd = p_sys->i_fd, .events = POLLIN, .revents = 0 }; struct pollfd ufd = { .fd = p_sys->i_fd, .events = POLLIN, .revents = 0 };
if( poll( &ufd, 1, -1 ) == -1 ) if( poll( &ufd, 1, -1 ) == -1 )
break; if( errno == EINTR )
continue;
else
break;
/* Process */ /* Process */
int canc = vlc_savecancel(); int canc = vlc_savecancel();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment