Explorar o código

dump dmalloc stats on sighup

svn:r10903
Roger Dingledine %!s(int64=18) %!d(string=hai) anos
pai
achega
0104882e9b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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());