Skip to content

Commit

Permalink
Ensure kevent-based epoll handles user data in all situations
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed Jun 12, 2024
1 parent d9040bf commit 0d22917
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/missing-epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout)
} else if (kev->filter == EVFILT_WRITE &&
kev->udata != &epoll_no_event_marker) {
ev->events |= EPOLLOUT;
ev->data.ptr = kev->udata;
}

last = kev->ident;
Expand Down

0 comments on commit 0d22917

Please sign in to comment.