[svn-commits] rmudgett: branch 10 r377399 - in /branches/10: ./ main/astmm.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Dec 7 17:42:04 CST 2012


Author: rmudgett
Date: Fri Dec  7 17:42:03 2012
New Revision: 377399

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377399
Log:
MALLOC_DEBUG: Only wait if we want atexit allocation dumps.
........

Merged revisions 377398 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/main/astmm.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/main/astmm.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/astmm.c?view=diff&rev=377399&r1=377398&r2=377399
==============================================================================
--- branches/10/main/astmm.c (original)
+++ branches/10/main/astmm.c Fri Dec  7 17:42:03 2012
@@ -1333,8 +1333,11 @@
 {
 	FILE *log;
 
-	fprintf(stderr, "Waiting 10 seconds to let other threads die.\n");
-	sleep(10);
+	/* Only wait if we want atexit allocation dumps. */
+	if (atexit_list || atexit_summary) {
+		fprintf(stderr, "Waiting 10 seconds to let other threads die.\n");
+		sleep(10);
+	}
 
 	regions_check_all_fences();
 




More information about the svn-commits mailing list