From: Richard Mudgett Date: Fri, 7 Dec 2012 23:42:03 +0000 (+0000) Subject: MALLOC_DEBUG: Only wait if we want atexit allocation dumps. X-Git-Tag: 10.12.0-rc1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fc38ba853810323bb96f5ccb2ac0b23587239c7;p=thirdparty%2Fasterisk.git MALLOC_DEBUG: Only wait if we want atexit allocation dumps. ........ Merged revisions 377398 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@377399 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/astmm.c b/main/astmm.c index 1283de2dfe..9396d09873 100644 --- a/main/astmm.c +++ b/main/astmm.c @@ -1333,8 +1333,11 @@ static void mm_atexit_final(void) { 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();