aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-07-22 07:05:43 +0000
committerRoger Dingledine <arma@torproject.org>2007-07-22 07:05:43 +0000
commit0104882e9b320a6b9b5d02fdd8b638d90fff1a1c (patch)
treec70f5b977ea8524bf7d91f113219427efc0f9f9b /src/or/main.c
parent5190916670f66633cf84690ee3937b634bde66ff (diff)
downloadtor-0104882e9b320a6b9b5d02fdd8b638d90fff1a1c.tar.gz
tor-0104882e9b320a6b9b5d02fdd8b638d90fff1a1c.zip
dump dmalloc stats on sighup
svn:r10903
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 7b89bd7294..a41b8cb17f 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1249,6 +1249,10 @@ do_hup(void)
{
or_options_t *options = get_options();
+#ifdef USE_DMALLOC
+ dmalloc_log_stats();
+#endif
+
log_notice(LD_GENERAL,"Received reload signal (hup). Reloading config.");
if (accounting_is_enabled(options))
accounting_record_bandwidth_usage(time(NULL), get_or_state());