Add a useful assertion to the poller

This commit is contained in:
Přemysl Eric Janouch 2015-02-21 19:01:21 +01:00
parent 8de88140f5
commit 6c30579882

View File

@ -1238,6 +1238,8 @@ poller_run (struct poller *self)
continue;
struct poller_fd *fd = revents->data.ptr;
hard_assert (fd->index != -1);
struct pollfd pfd;
pfd.fd = fd->fd;
pfd.revents = poller_epoll_to_poll_events (revents->events);