]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core: Remove non-critical cleanup from startup aborts.
authorCorey Farrell <git@cfware.com>
Sat, 10 Mar 2018 09:33:33 +0000 (04:33 -0500)
committerCorey Farrell <git@cfware.com>
Sat, 10 Mar 2018 09:33:33 +0000 (04:33 -0500)
commitc09a10bb1bdc2159d93683b03afe7dcafb3dd8dc
tree61dde73d6f8ec2ff404ab8308d3b3b6bb7ed55f1
parent99702af57a264c12b0d723c5aa6fa9a97460c3d3
core: Remove non-critical cleanup from startup aborts.

When built-in components of Asterisk fail to start they cause the
Asterisk startup to abort.  In these cases only the most critical
cleanup should be performed - closing databases and terminating
proceses.  These cleanups are registered using ast_register_atexit, all
other cleanups should not be run during startup abort.

The main reason for this change is that these cleanup procedures are
untestable from the partially initialized states, if they fail it could
prevent us from ever running the critical cleanup with ast_run_atexits.

Change-Id: Iecc2df98008b21509925ff16740bd5fa29527db3
main/cel.c
main/core_local.c
main/devicestate.c
main/dsp.c
main/features.c
main/features_config.c
main/indications.c
main/pbx_builtins.c
main/sorcery.c