Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Sep 9, 2024
1 parent 2237cc5 commit 29d409b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,11 @@ void sock_state_cb(void *data, ares_socket_t socket_fd, int readable, int writab
}
}

/* Update Poll Events (including on Add) */
state->fds[idx].fd = socket_fd;
state->fds[idx].events = 0;
if (readable) {
state->fds[idx].events |= POLL_IN;
state->fds[idx].events |= POLLIN;
}
if (writable) {
state->fds[idx].events |= POLLOUT;
Expand Down

0 comments on commit 29d409b

Please sign in to comment.