aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-28 19:58:43 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-28 19:58:43 +0000
commitcdcc0356202a00cdca21c989b71fe7376d81a895 (patch)
tree231c2b4a80176683c909285164d9ec0c8e8d58e5 /asterisk.c
parent17d587b621e47b46e4a4d92ce2b3709e5255f3f4 (diff)
Fix pbx_wilcalu from occupying 100% CPU now that it's nonblocking, and add malloc debug
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@927 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-xasterisk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c
index 5ee2a4f67..e083b4224 100755
--- a/asterisk.c
+++ b/asterisk.c
@@ -1341,6 +1341,9 @@ int main(int argc, char *argv[])
ast_verbose(term_color(tmp, "Asterisk Ready.\n", COLOR_BRWHITE, COLOR_BLACK, sizeof(tmp)));
fully_booted = 1;
pthread_sigmask(SIG_UNBLOCK, &sigs, NULL);
+#ifdef __AST_DEBUG_MALLOC
+ __ast_mm_init();
+#endif
ast_cli_register(&astshutdownnow);
ast_cli_register(&astshutdowngracefully);
ast_cli_register(&astrestartnow);