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

Aurélien Nephtali aurelien at sitadelle.com
Wed Mar 31 16:58:33 CEST 2010

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.

Aurélien Nephtali

More information about the vlc-devel mailing list