[asterisk-commits] rmudgett: branch 1.8 r377837 - /branches/1.8/main/taskprocessor.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 11 14:37:40 CST 2012


Author: rmudgett
Date: Tue Dec 11 14:37:36 2012
New Revision: 377837

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377837
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

Modified:
    branches/1.8/main/taskprocessor.c

Modified: branches/1.8/main/taskprocessor.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/taskprocessor.c?view=diff&rev=377837&r1=377836&r2=377837
==============================================================================
--- branches/1.8/main/taskprocessor.c (original)
+++ branches/1.8/main/taskprocessor.c Tue Dec 11 14:37:36 2012
@@ -125,7 +125,9 @@
 /*! \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