36f8f6fb024b20cc523cdf9ebde7491eca84fd7c
markd
  Sun Dec 6 20:33:20 2020 -0800
multiple request per connect works except hgBlat

diff --git src/lib/log.c src/lib/log.c
index 953a991..f48636a 100644
--- src/lib/log.c
+++ src/lib/log.c
@@ -185,30 +185,31 @@
 pushAbortHandler(logAbortHandler);
 gSysLogOn = TRUE;
 #else
 errAbort("syslog support was not compiled into %s", __FILE__);
 #endif
 }
 
 void logOpenFile(char* program, char *logFile)
 /* Initialize logging to the specified file.  Append to the file if it exists.
  * This adds a warn and errAbort handlers that do logging.  If custom handlers
  * are added, they should call logErrorVa().
  */
 {
 setProgram(program);
 gLogFh = mustOpen(logFile, "a");
+setlinebuf(gLogFh);
 pushWarnHandler(logWarnHandler);
 pushAbortHandler(logAbortHandler);
 }
 
 void logSetMinPriority(char *minPriority)
 /* set minimum priority to log, which is one of the syslog priority names,
  * even when logging to a file */
 {
 gMinPriority = parsePriority(minPriority);
 }
 
 FILE *logGetFile()
 /* Returns the log FILE object if file logging is enabled, or NULL if it
  * isn't. This is useful for logging debugging data that doesn't fit the log
  * message paradigm, For example, logging fasta records. */