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

LIRC: don't choke on EINTR

(cherry picked from commit cf25b55a45ec72aa89ce7089124d860a6e9b2081)
parent bd8e2d11
......@@ -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();
......
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