[Box Backup-commit] COMMIT r1463 - box/chris/general/lib/server

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Mar 24 20:23:16 GMT 2007


Author: chris
Date: 2007-03-24 20:23:16 +0000 (Sat, 24 Mar 2007)
New Revision: 1463

Modified:
   box/chris/general/lib/server/WinNamedPipeStream.cpp
Log:
Treat ERR_PIPE_NOT_CONNECTED during pipe reads as EOF as well


Modified: box/chris/general/lib/server/WinNamedPipeStream.cpp
===================================================================
--- box/chris/general/lib/server/WinNamedPipeStream.cpp	2007-03-24 19:57:50 UTC (rev 1462)
+++ box/chris/general/lib/server/WinNamedPipeStream.cpp	2007-03-24 20:23:16 UTC (rev 1463)
@@ -380,7 +380,8 @@
 			// ERROR_NO_DATA is a strange name for 
 			// "The pipe is being closed". No exception wanted.
 
-			if (err == ERROR_NO_DATA) 
+			if (err == ERROR_NO_DATA || 
+				err == ERROR_PIPE_NOT_CONNECTED) 
 			{
 				NumBytesRead = 0;
 			}




More information about the Boxbackup-commit mailing list