projects
/
oweals
/
tinc.git
/ 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.
[oweals/tinc.git]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index 3f17083c192dec33ceb2fb5481513294263d6b8f..9b60a31446143dd3cce7c0cafe4da41f6077cfb8 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;
}