Browse code

Fix the poll() loop (ret == 0 means that a timeout expired, so it must be handled)

Originally committed as revision 8711 to svn://svn.ffmpeg.org/ffmpeg/trunk

Luca Abeni authored on 2007/04/10 23:40:03
Showing 1 changed files
... ...
@@ -594,7 +594,7 @@ static int http_server(void)
594 594
             ret = poll(poll_table, poll_entry - poll_table, delay);
595 595
             if (ret < 0 && errno != EAGAIN && errno != EINTR)
596 596
                 return -1;
597
-        } while (ret <= 0);
597
+        } while (ret < 0);
598 598
 
599 599
         cur_time = av_gettime() / 1000;
600 600