Skip to content
Snippets Groups Projects
Commit 1d11efe9 authored by Richard Mudgett's avatar Richard Mudgett
Browse files

MALLOC_DEBUG: Only wait if we want atexit allocation dumps.

........

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

Merged revisions 377399 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 377401 from http://svn.asterisk.org/svn/asterisk/branches/11


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@377402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 86b9e317
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment