[asterisk-commits] kpfleming: branch 1.4 r56006 -
/branches/1.4/main/loader.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Feb 21 17:08:55 MST 2007
Author: kpfleming
Date: Wed Feb 21 18:08:54 2007
New Revision: 56006
URL: http://svn.digium.com/view/asterisk?view=rev&rev=56006
Log:
disable unloading of embedded modules... there is a fundamental problem with doing so that will not be fixed in this version of Asterisk due to its invasiveness
Modified:
branches/1.4/main/loader.c
Modified: branches/1.4/main/loader.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/loader.c?view=diff&rev=56006&r1=56005&r2=56006
==============================================================================
--- branches/1.4/main/loader.c (original)
+++ branches/1.4/main/loader.c Wed Feb 21 18:08:54 2007
@@ -445,6 +445,11 @@
if (!ast_test_flag(mod, FLAG_RUNNING | FLAG_DECLINED))
error = 1;
+ if (!mod->lib) {
+ ast_log(LOG_WARNING, "Unloading embedded modules is not supported.\n");
+ error = 1;
+ }
+
if (!error && (mod->usecount > 0)) {
if (force)
ast_log(LOG_WARNING, "Warning: Forcing removal of module '%s' with use count %d\n",
More information about the asterisk-commits
mailing list