]> git.ipfire.org Git - thirdparty/asterisk.git/commit
The SIGHUP handler was implemented to allow admins to send SIGHUP to a running
authorRussell Bryant <russell@russellbryant.com>
Tue, 30 Jan 2007 17:12:04 +0000 (17:12 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 30 Jan 2007 17:12:04 +0000 (17:12 +0000)
commit65a8360531ca77d66eca15699d5880b3896a4a1a
tree590ff555397fb28f6d929c838bffa1842a26140d
parent29d168987caa9f1a71cf7285bc870c17d9c31117
The SIGHUP handler was implemented to allow admins to send SIGHUP to a running
Asterisk process to reload the configuration.  However, doing the actual reload
in the signal handler itself is a very bad thing to do, because the reload
process includes calling non-reentrant functions such as malloc/calloc/etc.
If Asterisk is running in the background, then the reload will happen
immediately.  However, if running in console mode, the reload doesn't work
until something is typed at the console.  That sort of defeats the purpose,
but I don't see an easy way to get around it at this point.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@52903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
asterisk.c