MALLOC_DEBUG: Only wait if we want atexit allocation dumps.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@377398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/98/198/1
Richard Mudgett 13 years ago
parent 40dfa4b748
commit 46581779aa

@ -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();

Loading…
Cancel
Save