]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Track module use count for res_calendar
authorTerry Wilson <twilson@digium.com>
Wed, 22 Feb 2012 21:08:50 +0000 (21:08 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 22 Feb 2012 21:08:50 +0000 (21:08 +0000)
commit9a3c56977287f3d0725c275760c5f09f0294a91b
treed566f1acd6f9d8dec21c361e48238f800288c2fb
parent8dc1509465e8f1a80822fe95b0e183fa987014ac
Track module use count for res_calendar

If the res_calendar module was followed immediately by one of the
calendar tech modules and "core stop gracefully" was run, Asterisk
would crash.

This patch adds use count tracking for res_calendar so that it is
unloaded after the tech modules when shutting down gracefully. It
is now not possible to unload all the of the calendar modules via
"module unload res_calednar.so", but it is still possible to unload
them all via "module unload -h res_calendar.so".

Review: https://reviewboard.asterisk.org/r/1752/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@356291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/calendar.h
main/loader.c
res/res_calendar.c