]> 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:18:22 +0000 (21:18 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 22 Feb 2012 21:18:22 +0000 (21:18 +0000)
commitf11810c6904664e2c956ee3eaaacfa06c534d8e9
tree58b5771ca9c741857dbd0e01de2765fbe6e517da
parentbc3cb5ddbc0e2f276a3cd404f2dfa3e0250247d0
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/
........

Merged revisions 356291 from http://svn.asterisk.org/svn/asterisk/branches/1.8

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