[PATCH 2/3] server: Use check_fd_events() instead of calling poll() directly.