[vlc-devel] [PATCH] lua: never change index of lua file descriptors
ssbssa at yahoo.de
Fri Aug 22 16:00:30 CEST 2014
This fixes the following problem with the lua-telnet interface:
Open 1st telnet session, than a 2nd.
Close 1st session with 'quit' -> the 2nd is no longer responsive.
In vlclua_fd_unmap() the positions of the remaining file descriptors were changed, but lua keeps the original positions as index.
With this patch the positions never change, they are just set to -1 when unmapped, and later reused if necessary.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1595 bytes
Desc: not available
More information about the vlc-devel