Add a useful assertion to the poller
This commit is contained in:
parent
b656415836
commit
ccf6b1427f
2
common.c
2
common.c
|
@ -1212,6 +1212,8 @@ poller_run (struct poller *self)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
struct poller_fd *fd = revents->data.ptr;
|
struct poller_fd *fd = revents->data.ptr;
|
||||||
|
hard_assert (fd->index != -1);
|
||||||
|
|
||||||
struct pollfd pfd;
|
struct pollfd pfd;
|
||||||
pfd.fd = fd->fd;
|
pfd.fd = fd->fd;
|
||||||
pfd.revents = poller_epoll_to_poll_events (revents->events);
|
pfd.revents = poller_epoll_to_poll_events (revents->events);
|
||||||
|
|
Loading…
Reference in New Issue