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,6 +154,9 @@ static void Run( intf_thread_t *p_intf ) ...@@ -154,6 +154,9 @@ 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 )
if( errno == EINTR )
continue;
else
break; break;
/* Process */ /* Process */
......
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