[tor-commits] [tor/master] Sending response to SIGNAL HEARTBEAT controller command.
nickm at torproject.org
nickm at torproject.org
Tue Nov 25 17:49:20 UTC 2014
commit bf67a60b86b92f94d0c8b3c13edf4e8ff965c324
Author: rl1987 <rl1987 at sdf.lonestar.org>
Date: Tue Nov 4 19:29:29 2014 +0200
Sending response to SIGNAL HEARTBEAT controller command.
---
src/or/control.c | 3 +++
src/or/main.c | 1 +
2 files changed, 4 insertions(+)
diff --git a/src/or/control.c b/src/or/control.c
index 5c65189..37f3344 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 6a6e36a..d33eeb9 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;
}
}
More information about the tor-commits
mailing list