[asterisk-commits] dbailey: tag autotag_for_aadk-0.3.2 r58574 -
/tags/autotag_for_aadk-0.3.2/main/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Mar 9 10:24:28 MST 2007
Author: dbailey
Date: Fri Mar 9 11:24:27 2007
New Revision: 58574
URL: http://svn.digium.com/view/asterisk?view=rev&rev=58574
Log:
Added patch to prevent kernel crash for configuration wizard
Modified:
tags/autotag_for_aadk-0.3.2/main/loader.c
tags/autotag_for_aadk-0.3.2/main/manager.c
Modified: tags/autotag_for_aadk-0.3.2/main/loader.c
URL: http://svn.digium.com/view/asterisk/tags/autotag_for_aadk-0.3.2/main/loader.c?view=diff&rev=58574&r1=58573&r2=58574
==============================================================================
--- tags/autotag_for_aadk-0.3.2/main/loader.c (original)
+++ tags/autotag_for_aadk-0.3.2/main/loader.c Fri Mar 9 11:24:27 2007
@@ -531,6 +531,12 @@
return -1; /* reload already in progress */
}
+ if (ast_lastreloadtime && time(NULL) - ast_lastreloadtime < 5) {
+ ast_verbose("The previous reload was less than 5 seconds ago.\n");
+ ast_mutex_unlock(&reloadlock);
+ return -1;
+ }
+
/* Call "predefined" reload here first */
for (i = 0; reload_classes[i].name; i++) {
if (!name || !strcasecmp(name, reload_classes[i].name)) {
Modified: tags/autotag_for_aadk-0.3.2/main/manager.c
URL: http://svn.digium.com/view/asterisk/tags/autotag_for_aadk-0.3.2/main/manager.c?view=diff&rev=58574&r1=58573&r2=58574
==============================================================================
--- tags/autotag_for_aadk-0.3.2/main/manager.c (original)
+++ tags/autotag_for_aadk-0.3.2/main/manager.c Fri Mar 9 11:24:27 2007
@@ -1040,7 +1040,7 @@
astman_send_error(s, m, "Filename not specified");
return 0;
}
- if (!(cfg = ast_config_load_with_comments(fn))) {
+ if (!(cfg = ast_config_load(fn))) {
astman_send_error(s, m, "Config file not found");
return 0;
}
@@ -1144,7 +1144,7 @@
astman_send_error(s, m, "Filename not specified");
return 0;
}
- if (!(cfg = ast_config_load_with_comments(sfn))) {
+ if (!(cfg = ast_config_load(sfn))) {
astman_send_error(s, m, "Config file not found");
return 0;
}
More information about the asterisk-commits
mailing list