[vlc-devel] [PATCH] lua: fix polling
remi at remlab.net
Fri Mar 18 22:45:50 CET 2011
Le vendredi 18 mars 2011 23:20:58 Pierre Ynard, vous avez écrit :
> poll() revents are flags, and the lua module tests for equality...
> Obviously this has been working merely by accident given that a remote
> host resetting a connection generates only POLLIN, and neither POLLHUP
> nor POLLERR.
> Apparently lua doesn't support bitwise operators. Unless someone has a
> smarter solution, I guess this should go in 1.1.8.
I don't understand why VLC-LUA provides poll() at all. How is this supposed to
detect object "kills" or the interface getting shut down?
More information about the vlc-devel