[bugfix] invalid nfds argument of select()