First set of fixes

There are still some problems but at least it does something now.
This commit is contained in:
2014-09-18 23:41:07 +02:00
parent 64fa986cd0
commit 4662e84995
4 changed files with 100 additions and 83 deletions

View File

@@ -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;