From: David Yat Sin Date: Fri, 11 Mar 2011 22:39:07 +0000 (-0500) Subject: Changed Freeswitch core to return with error instead of abort when a critical module... X-Git-Tag: v1.2.3^2~71^2^2~245^2~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a60086cd22766fd9b9dc0ccfe243d12b47d958c5;p=thirdparty%2Ffreeswitch.git Changed Freeswitch core to return with error instead of abort when a critical module fails to load --- diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index d6796c8119..fe596bdf6b 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -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++;