]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Changed Freeswitch core to return with error instead of abort when a critical module...
authorDavid Yat Sin <dyatsin@sangoma.com>
Fri, 11 Mar 2011 22:39:07 +0000 (17:39 -0500)
committerDavid Yat Sin <dyatsin@sangoma.com>
Fri, 11 Mar 2011 22:39:07 +0000 (17:39 -0500)
src/switch_loadable_module.c

index d6796c81199b37c807fdc186da2c842ccd9efbc6..fe596bdf6be564a2aba98ec2d93023fb96a3f43a 100644 (file)
@@ -1300,7 +1300,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_init(switch_bool_t autolo
                                if (switch_loadable_module_load_module_ex((char *) path, (char *) val, SWITCH_FALSE, global, &err) == SWITCH_STATUS_GENERR) {
                                        if (critical && switch_true(critical)) {
                                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Failed to load critical module '%s', abort()\n", val);
-                                               abort();
+                                               return SWITCH_STATUS_FALSE;
                                        }
                                }
                                count++;