summaryrefslogtreecommitdiff
path: root/main/logger.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2013-05-24 11:57:48 +0000
committerMatthew Jordan <mjordan@digium.com>2013-05-24 11:57:48 +0000
commitc1b51fd2654736fd7c614d1571f904e236006651 (patch)
treeae996fbe8716ab2c295c72add403b0137e559c3a /main/logger.c
parent1fb6f365ecf3e914c713e5eaf96cb2240c470207 (diff)
Print all logger messages on shutdown
When Asterisk shuts down and shuts down the loggin gsubsystem, any messages currently in flight will not get logged. This patch prevents the loop writing messages from breaking out prematurely, such that all of the messages are logged. (closes issue ASTERISK-21716) Reported by: Corey Farrell patches: logger-process-all-messages.patch uploaded by Corey Farrell (license 5909) ........ Merged revisions 389676 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 389677 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/logger.c')
-rw-r--r--main/logger.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/main/logger.c b/main/logger.c
index 0ee3ae0e2..fd0310a50 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -1190,10 +1190,6 @@ static void *logger_thread(void *data)
/* Free the data since we are done */
logmsg_free(msg);
}
-
- /* If we should stop, then stop */
- if (close_logger_thread)
- break;
}
return NULL;