[vlc-devel] [PATCH 1/1] Fix infinite loop when accept4() is not usable

Rémi Denis-Courmont rem at videolan.org
Wed Mar 31 18:30:07 CEST 2010


On Wednesday 31 March 2010 17:58:33 Aurélien Nephtali, you wrote:
> 2010/3/31 Rémi Denis-Courmont <rem at videolan.org>:
> > On Wednesday 31 March 2010 15:43:21 Aurélien Nephtali, you wrote:
> >> Hello,
> >>
> >> Attached patch fixes HTTP streaming when accept4() is not usable
> >> (broken since 3585accf1f4c128f46a9b86da9742c)
> >
> > I fail to grasp how this bug fix works. If the errno value is wrong, then
> > that should be fixed directly (or removed).
> 
> If accept4() fails with ENOSYS (I have glib >= 2.10 and an old kernel
> (2.6.26)) then the accept() call will fail since it will use fd=-1.

Oh OK. That should be fixed now, thanks.

-- 
Rémi Denis-Courmont



More information about the vlc-devel mailing list