Browse Source

*** empty log message ***

master
Marc Alexander Lehmann 12 years ago
parent
commit
00eb49f12d
  1. 6
      ev_kqueue.c

6
ev_kqueue.c

@ -85,8 +85,6 @@ kqueue_poll (EV_P_ ev_tstamp timeout)
int res, i;
struct timespec ts;
EV_RELEASE_CB;
/* need to resize so there is enough space for errors */
if (kqueue_changecnt > kqueue_eventmax)
{
@ -95,12 +93,12 @@ kqueue_poll (EV_P_ ev_tstamp timeout)
kqueue_events = (struct kevent *)ev_malloc (sizeof (struct kevent) * kqueue_eventmax);
}
EV_RELEASE_CB;
ts.tv_sec = (time_t)timeout;
ts.tv_nsec = (long)((timeout - (ev_tstamp)ts.tv_sec) * 1e9);
res = kevent (backend_fd, kqueue_changes, kqueue_changecnt, kqueue_events, kqueue_eventmax, &ts);
kqueue_changecnt = 0;
EV_ACQUIRE_CB;
kqueue_changecnt = 0;
if (expect_false (res < 0))
{

Loading…
Cancel
Save