[asterisk-commits] rmudgett: trunk r377841 - in /trunk: ./ main/taskprocessor.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Dec 11 14:46:26 CST 2012
Author: rmudgett
Date: Tue Dec 11 14:46:23 2012
New Revision: 377841
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377841
Log:
Cleanup taskprocessor on exit.
* Cleanup CLI commands on exit.
(issue ASTERISK-20649)
Reported by: Corey Farrell
Patches:
taskprocessor-cleanup-1_8-11-trunk.patch (license #5909) patch uploaded by Corey Farrell
taskprocessor-cleanup-10-only.patch (license #5909) patch uploaded by Corey Farrell
Modified
........
Merged revisions 377837 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 377838 from http://svn.asterisk.org/svn/asterisk/branches/10
........
Merged revisions 377839 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
trunk/ (props changed)
trunk/main/taskprocessor.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: trunk/main/taskprocessor.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/taskprocessor.c?view=diff&rev=377841&r1=377840&r2=377841
==============================================================================
--- trunk/main/taskprocessor.c (original)
+++ trunk/main/taskprocessor.c Tue Dec 11 14:46:23 2012
@@ -122,10 +122,15 @@
AST_CLI_DEFINE(cli_tps_report, "List instantiated task processors and statistics"),
};
-/*! \internal \brief Clean up resources on Asterisk shutdown */
+/*!
+ * \internal
+ * \brief Clean up resources on Asterisk shutdown
+ */
static void tps_shutdown(void)
{
+ ast_cli_unregister_multiple(taskprocessor_clis, ARRAY_LEN(taskprocessor_clis));
ao2_t_ref(tps_singletons, -1, "Unref tps_singletons in shutdown");
+ tps_singletons = NULL;
}
/* initialize the taskprocessor container and register CLI operations */
More information about the asterisk-commits
mailing list