Fire timers after handling fd's (timers may free fd-handles)

This commit is contained in:
Andreas Öman 2007-08-17 07:56:14 +00:00
parent c5d551bd21
commit 1718028a36

View file

@ -214,8 +214,6 @@ dispatcher(void)
n = epoll_wait(epoll_fd, events, EPOLL_FDS_PER_ROUND, stimer_next());
time(&dispatch_clock);
stimer_dispatch(dispatch_clock);
for(i = 0; i < n; i++) {
e = events[i].data.ptr;
@ -232,4 +230,6 @@ dispatcher(void)
e->opaque, e->fd);
}
stimer_dispatch(dispatch_clock);
}