debugserver should fflush its log stream in FileLogCallback, now it does.
authorGreg Clayton <gclayton@apple.com>
Mon, 2 May 2016 22:53:08 +0000 (22:53 +0000)
committerGreg Clayton <gclayton@apple.com>
Mon, 2 May 2016 22:53:08 +0000 (22:53 +0000)
<rdar://problem/24728287>

llvm-svn: 268325

lldb/tools/debugserver/source/debugserver.cpp

index e02bd07..a22f046 100644 (file)
@@ -824,8 +824,9 @@ FileLogCallback(void *baton, uint32_t flags, const char *format, va_list args)
     if (baton == NULL || format == NULL)
         return;
 
-    ::vfprintf ((FILE *)baton, format, args);
-    ::fprintf ((FILE *)baton, "\n");
+    ::vfprintf((FILE *)baton, format, args);
+    ::fprintf((FILE *)baton, "\n");
+    ::fflush((FILE *)baton);
 }