[vlc-devel] [PATCH] src/network: try to write data again if EAGAIN is returned

Denis Charmet typx at dinauz.org
Fri Dec 13 14:03:14 CET 2013


Hi,

Le vendredi 13 décembre 2013 à 12:29:37, david.fuhrmann at gmail.com a écrit :
> -            if (errno == EINTR)
> +            if (errno == EINTR || errno == EAGAIN)
>                  continue;
>              msg_Err (p_this, "Write error: %m");
>              break;

Why would a write return EAGAIN if poll returned properly?
If you test against EAGAIN shouldn't you test against EWOULDBLOCK too?

Regards,

-- 
Denis Charmet - TypX
Le mauvais esprit est un art de vivre



More information about the vlc-devel mailing list