Don't report EINTR from select as an error, retry select instead
Originally committed as revision 22694 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -147,6 +147,8 @@ static int tcp_read(URLContext *h, uint8_t *buf, int size)
|
||||
return AVERROR(ff_neterrno());
|
||||
} else return len;
|
||||
} else if (ret < 0) {
|
||||
if (ff_neterrno() == FF_NETERROR(EINTR))
|
||||
continue;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -180,6 +182,8 @@ static int tcp_write(URLContext *h, uint8_t *buf, int size)
|
||||
size -= len;
|
||||
buf += len;
|
||||
} else if (ret < 0) {
|
||||
if (ff_neterrno() == FF_NETERROR(EINTR))
|
||||
continue;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user