[Box Backup-dev] COMMIT r784 - box/chris/general/lib/win32

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Aug 19 16:33:39 BST 2006


Author: chris
Date: 2006-08-19 16:33:39 +0100 (Sat, 19 Aug 2006)
New Revision: 784

Modified:
   box/chris/general/lib/win32/emu.cpp
Log:
* emu.cpp
- Flush stdout after writing messages


Modified: box/chris/general/lib/win32/emu.cpp
===================================================================
--- box/chris/general/lib/win32/emu.cpp	2006-08-19 15:33:10 UTC (rev 783)
+++ box/chris/general/lib/win32/emu.cpp	2006-08-19 15:33:39 UTC (rev 784)
@@ -1349,6 +1349,7 @@
 	if (len < 0) 
 	{
 		printf("%s\r\n", buffer);
+		fflush(stdout);
 		return;
 	}
 	
@@ -1362,6 +1363,7 @@
 	if (gSyslogH == 0)
 	{
 		printf("%s\r\n", buffer);
+		fflush(stdout);
 		return;
 	}
 
@@ -1384,6 +1386,7 @@
 			{
 				printf("Unable to send message to Event Log "
 					"(Event Log is full):\r\n");
+				fflush(stdout);
 				sHaveWarnedEventLogFull = TRUE;
 			}
 		}
@@ -1391,6 +1394,7 @@
 		{
 			printf("Unable to send message to Event Log: "
 				"error %i:\r\n", (int)err);
+			fflush(stdout);
 		}
 	}
 	else
@@ -1399,6 +1403,7 @@
 	}
 
 	printf("%s\r\n", buffer);
+	fflush(stdout);
 }
 
 int emu_chdir(const char* pDirName)




More information about the Boxbackup-dev mailing list