]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix shutdown crash caused by modules being left open. 19/4219/1
authorCorey Farrell <git@cfware.com>
Fri, 28 Oct 2016 02:49:43 +0000 (22:49 -0400)
committerCorey Farrell <git@cfware.com>
Fri, 28 Oct 2016 15:24:13 +0000 (10:24 -0500)
commitb76afa5e4fbb581317556bae375940f7ad7707f7
treeffd663159df03136af4e9d03f04e11574cb4e3c1
parentbfbf41c33b8e6ebdc45adc496c25e48ecf2391d8
Fix shutdown crash caused by modules being left open.

It is only safe to run ast_register_cleanup callbacks when all modules
have been unloaded.  Previously these callbacks were run during graceful
shutdown, making it possible to crash during shutdown.

ASTERISK-26513 #close

Change-Id: Ibfa635bb688d1227ec54aa211d90d6bd45052e21
include/asterisk/_private.h
include/asterisk/module.h
main/asterisk.c
main/loader.c