We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3a384 commit 8880b8aCopy full SHA for 8880b8a
src/eloop.c
@@ -1029,17 +1029,7 @@ eloop_run_ppoll(struct eloop *eloop, const struct timespec *ts)
1029
continue;
1030
if (e->pollfd->revents) {
1031
nn--;
1032
- events = 0;
1033
- if (pfd->revents & POLLIN)
1034
- events |= ELE_READ;
1035
- if (pfd->revents & POLLOUT)
1036
- events |= ELE_WRITE;
1037
- if (pfd->revents & POLLHUP)
1038
- events |= ELE_HANGUP;
1039
- if (pfd->revents & POLLERR)
1040
- events |= ELE_ERROR;
1041
- if (pfd->revents & POLLNVAL)
1042
- events |= ELE_NVAL;
+ events = eloop_pollevents(pfd);
1043
if (events)
1044
e->cb(e->cb_arg, events);
1045
}
0 commit comments