Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleare ev_queue_off

git-svn-id: http://svn.coderepos.org/share/lang/c/picoev/trunk@34997 d0d07461-0603-4401-acd4-de1884942a52
  • Loading branch information...
commit d42b19e9d8f5f620e21f1bc9da9248a1cd443ecc 1 parent 37016e1
kazuho authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  picoev_kqueue.c
View
1  picoev_kqueue.c
@@ -96,6 +96,7 @@ int picoev_poll_once_internal(picoev_loop* _loop, int max_wait)
ts.tv_nsec = 0;
nevents = kevent(loop->kq, loop->ev_queue, loop->ev_queue_off, loop->events,
sizeof(loop->events) / sizeof(loop->events[0]), &ts);
+ loop->ev_queue_off = 0;
if (nevents == -1) {
/* the errors we can only rescue */
assert(errno == EACCES || errno == EFAULT || errno == EINTR);
Please sign in to comment.
Something went wrong with that request. Please try again.