[vlc-devel] [vlc-commits] demux: adaptative: don't retry on EINTR

Rémi Denis-Courmont remi at remlab.net
Tue Nov 10 11:20:44 CET 2015


Le 2015-11-10 13:17, git at videolan.org a écrit :
> vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon
> Nov  9 15:20:59 2015 +0100| 
> [51f2e9698636d6c880967abf0fad5b6ed856a7d2]
> | committer: Francois Cartegnie
>
> demux: adaptative: don't retry on EINTR
>
>> 
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=51f2e9698636d6c880967abf0fad5b6ed856a7d2
> ---
>
>  modules/demux/adaptative/http/Sockets.cpp |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules/demux/adaptative/http/Sockets.cpp
> b/modules/demux/adaptative/http/Sockets.cpp
> index 3c0b1ab..20ad448 100644
> --- a/modules/demux/adaptative/http/Sockets.cpp
> +++ b/modules/demux/adaptative/http/Sockets.cpp
> @@ -76,7 +76,7 @@ ssize_t Socket::read(vlc_object_t *stream, void
> *p_buffer, size_t len)
>      do
>      {
>          size = net_Read(stream, netfd, p_buffer, len);
> -    } while (size < 0 && (errno == EINTR || errno==EAGAIN) );
> +    } while (size < 0 && errno==EAGAIN );

In what cases can you even get EAGAIN ?!

-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list