]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
dump dmalloc stats on sighup
authorRoger Dingledine <arma@torproject.org>
Sun, 22 Jul 2007 07:05:43 +0000 (07:05 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 22 Jul 2007 07:05:43 +0000 (07:05 +0000)
svn:r10903

src/or/main.c

index 7b89bd7294f440f32f2ac8d7580b0126d52e7ddb..a41b8cb17f8d79d7098c4394e87fafe825c17373 100644 (file)
@@ -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());