[asterisk-commits] mjordan: branch 1.8 r389676 - /branches/1.8/main/logger.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 24 06:42:58 CDT 2013


Author: mjordan
Date: Fri May 24 06:42:38 2013
New Revision: 389676

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389676
Log:
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)

Modified:
    branches/1.8/main/logger.c

Modified: branches/1.8/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/logger.c?view=diff&rev=389676&r1=389675&r2=389676
==============================================================================
--- branches/1.8/main/logger.c (original)
+++ branches/1.8/main/logger.c Fri May 24 06:42:38 2013
@@ -1087,10 +1087,6 @@
 			/* Free the data since we are done */
 			ast_free(msg);
 		}
-
-		/* If we should stop, then stop */
-		if (close_logger_thread)
-			break;
 	}
 
 	return NULL;




More information about the asterisk-commits mailing list