Fix select nfds parameter

Signed-off-by: Jeff Horn <jeff@everlook.net>
Remove commented out code

Signed-off-by: Jeff Horn <jeff@everlook.net>