Colin: tested, It has a little bug (the nfds parameter should be adapted as well). Attacching the patch that should work.
Colin: tested, It has a little bug (the nfds parameter should be adapted as well).
Attacching the patch that should work.