[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r10903: dump dmalloc stats on sighup (tor/trunk/src/or)



Author: arma
Date: 2007-07-22 03:05:43 -0400 (Sun, 22 Jul 2007)
New Revision: 10903

Modified:
   tor/trunk/src/or/main.c
Log:
dump dmalloc stats on sighup


Modified: tor/trunk/src/or/main.c
===================================================================
--- tor/trunk/src/or/main.c	2007-07-22 06:32:28 UTC (rev 10902)
+++ tor/trunk/src/or/main.c	2007-07-22 07:05:43 UTC (rev 10903)
@@ -1249,6 +1249,10 @@
 {
   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());