aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2014-11-02 19:14:58 +0200
committerNick Mathewson <nickm@torproject.org>2014-11-25 12:48:41 -0500
commit8c135062e51b2ead38a756b045e7d243ffbda5a9 (patch)
tree09c6bf51508753476bee11001629c9c1f7767596 /src/or/main.c
parentf179ff18f3d05cff2a28add5b0ae9df929d94536 (diff)
downloadtor-8c135062e51b2ead38a756b045e7d243ffbda5a9.tar.gz
tor-8c135062e51b2ead38a756b045e7d243ffbda5a9.zip
Adding 'SIGNAL HEARTBEAT' message that causes unscheduled heartbeat.
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 5a4e0a3e2d..6a6e36abc6 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2137,6 +2137,9 @@ process_signal(uintptr_t sig)
addressmap_clear_transient();
control_event_signal(sig);
break;
+ case SIGHEARTBEAT:
+ log_heartbeat(time(NULL));
+ break;
}
}