autoservice: stop thread on graceful shutdown
authorCorey Farrell <git@cfware.com>
Mon, 9 Jun 2014 03:50:45 +0000 (03:50 +0000)
committerCorey Farrell <git@cfware.com>
Mon, 9 Jun 2014 03:50:45 +0000 (03:50 +0000)
commit8da7f0248f2ade26f14e5ce3986412a39de6f960
tree2a007f0e2518ee811d2e3c2d9b450bbc4d97f535
parent20a14e568f64de25326d794768790351cb703330
autoservice: stop thread on graceful shutdown

This change adds thread shutdown to autoservice for graceful shutdowns only.
ast_register_cleanup is backported to 1.8 to allow this.  The logger callid
is also released on shutdown in 11+.

ASTERISK-23827 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/3594/
........

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

Merged revisions 415464 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 415465 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415466 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/autoservice.c