From 6c30579882483ae99f683df22f3719d3d54e7ad3 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 21 Feb 2015 19:01:21 +0100 Subject: Add a useful assertion to the poller --- utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.c b/utils.c index 3eb7b1d..f8d0501 100644 --- a/utils.c +++ b/utils.c @@ -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); -- cgit v1.2.3-70-g09d2