I think you'll need to reset that
fd_set
before every select()
call.
fd_set
before every select()
call.