Use poll() instead of select() for the server main loop.