version 1.3.4.2, 2012/01/24 14:04:58
|
version 1.3.4.3, 2012/01/24 14:51:03
|
Line 309 retry:
|
Line 309 retry:
|
r->root_wait = mtmp; |
r->root_wait = mtmp; |
} else { |
} else { |
/* set wait INFTIM */ |
/* set wait INFTIM */ |
r->root_wait.tv_sec = r->root_wait.tv_usec = -1; | r->root_wait.tv_sec = r->root_wait.tv_nsec = -1; |
} |
} |
#else |
#else |
if (!TAILQ_FIRST(&r->root_eventlo) && (task = TAILQ_FIRST(&r->root_timer))) { |
if (!TAILQ_FIRST(&r->root_eventlo) && (task = TAILQ_FIRST(&r->root_timer))) { |
Line 329 retry:
|
Line 329 retry:
|
|
|
if (r->root_wait.tv_sec != -1 && r->root_wait.tv_nsec != -1) |
if (r->root_wait.tv_sec != -1 && r->root_wait.tv_nsec != -1) |
timeout = &r->root_wait; |
timeout = &r->root_wait; |
else /* wait INFTIM */ | else if (r->root_poll.tv_sec == -1 && r->root_poll.tv_nsec == -1) |
timeout = NULL; |
timeout = NULL; |
|
else |
|
timeout = &r->root_poll; |
if ((en = kevent(r->root_kq, NULL, 0, res, KQ_EVENTS, timeout)) == -1) { |
if ((en = kevent(r->root_kq, NULL, 0, res, KQ_EVENTS, timeout)) == -1) { |
if (r->root_hooks.hook_exec.exception) { |
if (r->root_hooks.hook_exec.exception) { |
if (r->root_hooks.hook_exec.exception(r, NULL)) |
if (r->root_hooks.hook_exec.exception(r, NULL)) |