[asterisk-commits] file: trunk r55716 - /trunk/main/logger.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Feb 20 16:26:00 MST 2007


Author: file
Date: Tue Feb 20 17:26:00 2007
New Revision: 55716

URL: http://svn.digium.com/view/asterisk?view=rev&rev=55716
Log:
Flush out the file pointer. (issue #9115 reported by guthrie)

Modified:
    trunk/main/logger.c

Modified: trunk/main/logger.c
URL: http://svn.digium.com/view/asterisk/trunk/main/logger.c?view=diff&rev=55716&r1=55715&r2=55716
==============================================================================
--- trunk/main/logger.c (original)
+++ trunk/main/logger.c Tue Feb 20 17:26:00 2007
@@ -705,6 +705,8 @@
 						fprintf(stderr, "Logger Warning: Unable to write to log file '%s': %s (disabled)\n", chan->filename, strerror(errno));
 					manager_event(EVENT_FLAG_SYSTEM, "LogChannel", "Channel: %s\r\nEnabled: No\r\nReason: %d - %s\r\n", chan->filename, errno, strerror(errno));
 					chan->disabled = 1;
+				} else if (res > 0) {
+					fflush(chan->fileptr);
 				}
 			}
 		}



More information about the asterisk-commits mailing list