[or-cvs] r10961: When running with dmalloc, dump more stats on hup and exit. (in tor/trunk: . src/or)
arma at seul.org
arma at seul.org
Sun Jul 29 01:18:01 UTC 2007
Author: arma
Date: 2007-07-28 21:18:00 -0400 (Sat, 28 Jul 2007)
New Revision: 10961
Modified:
tor/trunk/ChangeLog
tor/trunk/src/or/main.c
Log:
When running with dmalloc, dump more stats on hup and exit.
Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog 2007-07-29 01:08:16 UTC (rev 10960)
+++ tor/trunk/ChangeLog 2007-07-29 01:18:00 UTC (rev 10961)
@@ -44,6 +44,7 @@
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.
Modified: tor/trunk/src/or/main.c
===================================================================
--- tor/trunk/src/or/main.c 2007-07-29 01:08:16 UTC (rev 10960)
+++ tor/trunk/src/or/main.c 2007-07-29 01:18:00 UTC (rev 10961)
@@ -1255,6 +1255,7 @@
#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 @@
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
More information about the tor-commits
mailing list