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

lua: fix potential busy loop in net.poll()

parent 2dc214fb
......@@ -219,7 +219,7 @@ static int vlclua_net_poll( lua_State *L )
int i_ret;
do
i_ret = poll( p_fds, i_fds, -1 );
while( i_ret == -1 );
while( i_ret == -1 && errno == EINTR );
for( i = 0; i < i_fds; i++ )
{
......
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