Nearly tickless tinc.

Use pselect instead of select in main_loop (if available). This lets
tincd sleeps as long as there is nothing to do.
This commit is contained in:
Loïc Grenié 2011-06-04 09:05:23 +02:00 committed by Guus Sliepen
parent 64771f73eb
commit 50af33d01f
7 changed files with 63 additions and 15 deletions

View file

@ -214,7 +214,7 @@ void age_past_requests(void) {
next = node->next;
p = node->data;
if(p->firstseen + pinginterval < now)
if(p->firstseen + pinginterval <= now)
avl_delete_node(past_request_tree, node), deleted++;
else
left++;