diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-18 23:41:07 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-19 01:02:26 +0200 |
commit | 4662e84995cf9570c18361f6686bf5964fd86cba (patch) | |
tree | 71075baf2dd4b7ac59a7384774d491d680db7e67 /utils.c | |
parent | 64fa986cd089b60ef5da72cfa149813041011537 (diff) | |
download | ponymap-4662e84995cf9570c18361f6686bf5964fd86cba.tar.gz ponymap-4662e84995cf9570c18361f6686bf5964fd86cba.tar.xz ponymap-4662e84995cf9570c18361f6686bf5964fd86cba.zip |
First set of fixes
There are still some problems but at least it does something now.
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1214,11 +1214,11 @@ poller_run (struct poller *self) if (n_fds == -1) exit_fatal ("%s: %s", "epoll", strerror (errno)); - poller_timers_dispatch (&self->timers); - self->dispatch_next = 0; self->dispatch_total = n_fds; + poller_timers_dispatch (&self->timers); + while (self->dispatch_next < self->dispatch_total) { struct epoll_event *revents = self->revents + self->dispatch_next; |