Properly initialize revents before trying to read it in case poll returns with an error.