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

LIRC: don't choke on EINTR

parent e1ad2bf9
...@@ -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