Browse Source

dump dmalloc stats on sighup

svn:r10903
Roger Dingledine 18 years ago
parent
commit
0104882e9b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/or/main.c

+ 4 - 0
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());