[vlc-devel] [PATCH 3/4] http: test: use interruptable accept()

Rémi Denis-Courmont remi at remlab.net
Thu Feb 4 05:56:43 UTC 2021


Le keskiviikkona 3. helmikuuta 2021, 20.17.10 EET Zhao Zhili a écrit :
> > All this does is replace blocking accept4() with poll() then blocking
> > accept(). It hinges on working POSIX thread cancellation either way.
> 
> vlc_accept_i11e() -> vlc_poll_i11e() -> vlc_poll()
> 
> It's the vlc_poll() hack for Android which makes cancel work.

That's a bug in the Android port though that's not even the point.

The point is that you're relying on an unwarranted implementation detail of 
vlc_accept_i11e(). In this case, vlc_accept_i11e() could just as well call 
accept() directly.

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list