[asterisk-commits] kmoore: branch 11 r371438 - in /branches/11: ./ main/loader.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Aug 17 10:58:29 CDT 2012
Author: kmoore
Date: Fri Aug 17 10:58:25 2012
New Revision: 371438
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=371438
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
Modified:
branches/11/ (props changed)
branches/11/main/loader.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: branches/11/main/loader.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/loader.c?view=diff&rev=371438&r1=371437&r2=371438
==============================================================================
--- branches/11/main/loader.c (original)
+++ branches/11/main/loader.c Fri Aug 17 10:58:25 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