]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/res_corosync: Always decline module load, instead of failing 41/741/1
authorMatt Jordan <mjordan@digium.com>
Sat, 27 Jun 2015 03:02:42 +0000 (22:02 -0500)
committerMatt Jordan <mjordan@digium.com>
Sat, 27 Jun 2015 03:02:42 +0000 (22:02 -0500)
commita5e9c4e9b2faf10aef7635879e2a5cce1be9119b
tree62320fd0a4ae5f43d45cd62e2b10cead9b4ef13b
parent0ec461a637ecfdd641cd9a9ce62b766472acde46
res/res_corosync: Always decline module load, instead of failing

Returns a 'failure' from the module load routine indicates to Asterisk
that it should abort loading completely. This is rarely - in fact,
really, never - a good option. Aborting load of Asterisk from a dynamic
module implies that the core, and the rest of the dynamic modules, don't
matter: we should abandon all processing.

res_corosync is really not that important.

This patch updates the module such that, if it fails to load, it
politely declines (emitting ERROR messages along the way), and allows
Asterisk to continue to function.

Note that this issue was keeping Asterisk unit tests from running on
certain build agents.

Change-Id: I252249e81fb9b1a68e0da873f54f47e21d648f0f
res/res_corosync.c