[vlc-devel] [PATCH] lua: never change index of lua file descriptors

Hannes Domani 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.

Domani Hannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lua-never-change-index-of-lua-file-descriptors.patch
Type: application/octet-stream
Size: 1595 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140822/8d5a4704/attachment.obj>

More information about the vlc-devel mailing list