]> granicus.if.org Git - transmission/commitdiff
(trunk daemon) "--logfile is unreliable on Solaris 10" -- fixed.
authorJordan Lee <jordan@transmissionbt.com>
Sat, 15 Jan 2011 17:14:15 +0000 (17:14 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 15 Jan 2011 17:14:15 +0000 (17:14 +0000)
daemon/daemon.c

index 01c4f1520711493128900b1acff23e8178d8259f..ab47db3c5e90b2834a6f7eaecbf4c0b06f066189 100644 (file)
@@ -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 );
 }