Selaa lähdekoodia

dump dmalloc stats on sighup

svn:r10903
Roger Dingledine 18 vuotta sitten
vanhempi
commit
0104882e9b
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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());