]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_memory_cache.c: Shutdown in a less crash potential order. 53/1353/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:25:37 +0000 (17:25 -0500)
commitced0a2d71b690f24026392bcfbbe4c36eb8d4dff
tree9c377e1ca2fd952bdf0c49c515cb8e525104c388
parentcc279eea11853ad90605775a63d58a1cab88f96c
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