[asterisk-commits] rmudgett: branch 11 r377839 - in /branches/11: ./ main/taskprocessor.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Dec 11 14:45:06 CST 2012
Author: rmudgett
Date: Tue Dec 11 14:45:02 2012
New Revision: 377839
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377839
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
Modified:
branches/11/ (props changed)
branches/11/main/taskprocessor.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: branches/11/main/taskprocessor.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/taskprocessor.c?view=diff&rev=377839&r1=377838&r2=377839
==============================================================================
--- branches/11/main/taskprocessor.c (original)
+++ branches/11/main/taskprocessor.c Tue Dec 11 14:45:02 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