diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-02-21 12:32:51 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-02-21 12:32:51 +0100 |
commit | ccf6b1427f94e8c0b495a6f93634004bd935cf5f (patch) | |
tree | 1bfc6e8faf4a60d02fd08963f03a1fb00e49a9cf | |
parent | b656415836877f851661c679d8a9cc6df8c33a41 (diff) | |
download | xK-ccf6b1427f94e8c0b495a6f93634004bd935cf5f.tar.gz xK-ccf6b1427f94e8c0b495a6f93634004bd935cf5f.tar.xz xK-ccf6b1427f94e8c0b495a6f93634004bd935cf5f.zip |
Add a useful assertion to the poller
-rw-r--r-- | common.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1212,6 +1212,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); |