]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
When running with dmalloc, dump more stats on hup and exit.
authorRoger Dingledine <arma@torproject.org>
Sun, 29 Jul 2007 01:18:00 +0000 (01:18 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 29 Jul 2007 01:18:00 +0000 (01:18 +0000)
svn:r10961

ChangeLog
src/or/main.c

index f759922f0035b13bb810c5577e2d73b88900e28e..260593708a5c60f69d6752e5c89f7ef7d4e822b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -44,6 +44,7 @@ Changes in version 0.2.0.3-alpha - 2007-07-29
       creator only, and write-protects the authority identity key.
     - When dumping memory usage, list bytes used in buffer memory
       free-lists.
+    - When running with dmalloc, dump more stats on hup and exit.
     - Directory authorities now fail quickly and (relatively) harmlessly
       if they generate a network status document that is somehow
       malformed.
index 8bedd71b86c2da866e8a3d035403901038505e39..83954789e8b9d12f18681cda9fc0c9e9d2992452 100644 (file)
@@ -1255,6 +1255,7 @@ do_hup(void)
 
 #ifdef USE_DMALLOC
   dmalloc_log_stats();
+  dmalloc_log_changed(0, 1, 0, 0);
 #endif
 
   log_notice(LD_GENERAL,"Received reload signal (hup). Reloading config.");
@@ -1815,6 +1816,9 @@ tor_cleanup(void)
     or_state_mark_dirty(get_or_state(), 0); /* force an immediate save. */
     or_state_save(time(NULL));
   }
+#ifdef USE_DMALLOC
+  dmalloc_log_stats();
+#endif
   tor_free_all(0); /* We could move tor_free_all back into the ifdef below
                       later, if it makes shutdown unacceptably slow.  But for
                       now, leave it here: it's helped us catch bugs in the