[svn-commits] kmoore: branch 1.8 r371436 - /branches/1.8/main/loader.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 17 10:49:58 CDT 2012


Author: kmoore
Date: Fri Aug 17 10:49:54 2012
New Revision: 371436

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

Modified:
    branches/1.8/main/loader.c

Modified: branches/1.8/main/loader.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/loader.c?view=diff&rev=371436&r1=371435&r2=371436
==============================================================================
--- branches/1.8/main/loader.c (original)
+++ branches/1.8/main/loader.c Fri Aug 17 10:49:54 2012
@@ -713,7 +713,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 svn-commits mailing list