projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ping nodes immediately when receiving SIGALRM.
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
3f17083
..
9b60a31
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-418,8
+418,13
@@
int main_loop(void) {
}
if(sigalrm) {
+ avl_node_t *node;
logger(LOG_INFO, "Flushing event queue");
expire_events();
+ for(node = connection_tree->head; node; node = node->next) {
+ connection_t *c = node->data;
+ send_ping(c);
+ }
sigalrm = false;
}