[vlc-commits] lua: fix potential busy loop in net.poll()
Rémi Denis-Courmont
git at videolan.org
Thu Jun 20 18:14:02 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 20 19:02:22 2013 +0300| [3d2bd907e87f5223910f9c217aae0c2c550a1670] | committer: Rémi Denis-Courmont
lua: fix potential busy loop in net.poll()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d2bd907e87f5223910f9c217aae0c2c550a1670
---
modules/lua/libs/net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/lua/libs/net.c b/modules/lua/libs/net.c
index 4c3ee72..32aa79b 100644
--- a/modules/lua/libs/net.c
+++ b/modules/lua/libs/net.c
@@ -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++ )
{
More information about the vlc-commits
mailing list