]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_memory_cache.c: Shutdown in a less crash potential order. 63/1363/1
authorRichard Mudgett <rmudgett@digium.com>
Thu, 1 Oct 2015 19:27:34 +0000 (14:27 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 1 Oct 2015 22:27:42 +0000 (17:27 -0500)
commit9ec52447bd6c48213f6007505b2e0a5f3906b592
tree024521dcbebc15cb6b245e798d87826404bfc539
parent110927bacc40706a110ad5d9f94e2eb85d8b9710
res_sorcery_memory_cache.c: Shutdown in a less crash potential order.

Basically you should shutdown in the opposite order of how you setup since
later setup pieces likely depend on earlier setup pieces.  e.g.,
Registering your external API with the rest of the system should be the
last thing setup and the first thing unregistered during shutdown.

Change-Id: I5715765b723100c8d3c2642e9e72cc7ad5ad115e
res/res_sorcery_memory_cache.c