From d6d6fd2d7ed540a938b2122fa0847239a0deee6a Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sat, 15 Jan 2011 17:14:15 +0000 Subject: [PATCH] (trunk daemon) "--logfile is unreliable on Solaris 10" -- fixed. --- daemon/daemon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/daemon.c b/daemon/daemon.c index 01c4f1520..ab47db3c5 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -323,6 +323,9 @@ pumpLogMessages( FILE * logfile ) for( l=list; l!=NULL; l=l->next ) printMessage( logfile, l->level, l->name, l->message, l->file, l->line ); + if( logfile != NULL ) + fflush( logfile ); + tr_freeMessageList( list ); }