diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2014-11-04 19:29:29 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-25 12:48:41 -0500 |
commit | bf67a60b86b92f94d0c8b3c13edf4e8ff965c324 (patch) | |
tree | 22f55f0363c9054fcad5a4106cd378981270c2c6 /src/or | |
parent | 8c135062e51b2ead38a756b045e7d243ffbda5a9 (diff) | |
download | tor-bf67a60b86b92f94d0c8b3c13edf4e8ff965c324.tar.gz tor-bf67a60b86b92f94d0c8b3c13edf4e8ff965c324.zip |
Sending response to SIGNAL HEARTBEAT controller command.
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/control.c | 3 | ||||
-rw-r--r-- | src/or/main.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c index 5c65189bf2..37f33442ea 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -4455,6 +4455,9 @@ control_event_signal(uintptr_t signal) case SIGCLEARDNSCACHE: signal_string = "CLEARDNSCACHE"; break; + case SIGHEARTBEAT: + signal_string = "HEARTBEAT"; + break; default: log_warn(LD_BUG, "Unrecognized signal %lu in control_event_signal", (unsigned long)signal); diff --git a/src/or/main.c b/src/or/main.c index 6a6e36abc6..d33eeb9e59 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -2139,6 +2139,7 @@ process_signal(uintptr_t sig) break; case SIGHEARTBEAT: log_heartbeat(time(NULL)); + control_event_signal(sig); break; } } |