[asterisk-commits] kmoore: trunk r371439 - in /trunk: ./ main/loader.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Aug 17 11:01:35 CDT 2012
Author: kmoore
Date: Fri Aug 17 11:01:32 2012
New Revision: 371439
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=371439
Log:
Add instrumentation to subsystem reloads
When Asterisk is built with TEST_FRAMEWORK defined, Asterisk will now
generate TestEvent AMI events on subsystem reloads such as cdr, dnsmgr,
extconfig, etc.
(issue PQ-1126)
........
Merged revisions 371436 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 371437 from http://svn.asterisk.org/svn/asterisk/branches/10
........
Merged revisions 371438 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
trunk/ (props changed)
trunk/main/loader.c
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-11-merged (original)
+++ branch-11-merged Fri Aug 17 11:01:32 2012
@@ -1,1 +1,1 @@
-/branches/11:1-371121,371143,371146,371200,371227,371258,371272,371295,371324,371355,371382,371395,371399,371425-371426
+/branches/11:1-371121,371143,371146,371200,371227,371258,371272,371295,371324,371355,371382,371395,371399,371425-371426,371438
Modified: trunk/main/loader.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/loader.c?view=diff&rev=371439&r1=371438&r2=371439
==============================================================================
--- trunk/main/loader.c (original)
+++ trunk/main/loader.c Fri Aug 17 11:01:32 2012
@@ -718,7 +718,9 @@
/* Call "predefined" reload here first */
for (i = 0; reload_classes[i].name; i++) {
if (!name || !strcasecmp(name, reload_classes[i].name)) {
- reload_classes[i].reload_fn(); /* XXX should check error ? */
+ if (!reload_classes[i].reload_fn()) {
+ ast_test_suite_event_notify("MODULE_RELOAD", "Message: %s", name);
+ }
res = 2; /* found and reloaded */
}
}
More information about the asterisk-commits
mailing list