Mercurial > libavformat.hg
diff tcp.c @ 5896:395592984ef0 libavformat
Don't report EINTR from select as an error, retry select instead
author | mstorsjo |
---|---|
date | Fri, 26 Mar 2010 16:04:38 +0000 |
parents | d605f589f0be |
children | 7fdda2416684 |
line wrap: on
line diff
--- a/tcp.c Fri Mar 26 01:12:14 2010 +0000 +++ b/tcp.c Fri Mar 26 16:04:38 2010 +0000 @@ -147,6 +147,8 @@ return AVERROR(ff_neterrno()); } else return len; } else if (ret < 0) { + if (ff_neterrno() == FF_NETERROR(EINTR)) + continue; return -1; } } @@ -180,6 +182,8 @@ size -= len; buf += len; } else if (ret < 0) { + if (ff_neterrno() == FF_NETERROR(EINTR)) + continue; return -1; } }