[Box Backup-commit] COMMIT r1395 - box/chris/merge/lib/server

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Mar 10 17:03:13 GMT 2007


Author: chris
Date: 2007-03-10 17:03:13 +0000 (Sat, 10 Mar 2007)
New Revision: 1395

Modified:
   box/chris/merge/lib/server/WinNamedPipeStream.cpp
Log:
Catch exceptions thrown by closing the WinNamedPipeStream during shutdown
and suppress them. (refs #3, merges [1284])


Modified: box/chris/merge/lib/server/WinNamedPipeStream.cpp
===================================================================
--- box/chris/merge/lib/server/WinNamedPipeStream.cpp	2007-03-10 17:01:42 UTC (rev 1394)
+++ box/chris/merge/lib/server/WinNamedPipeStream.cpp	2007-03-10 17:03:13 UTC (rev 1395)
@@ -57,7 +57,15 @@
 {
 	if (mSocketHandle != INVALID_HANDLE_VALUE)
 	{
-		Close();
+		try
+		{
+			Close();
+		}
+		catch (std::exception &e)
+		{
+			::syslog(LOG_ERR, "Caught exception while destroying "
+				"named pipe, ignored.");
+		}
 	}
 }
 




More information about the Boxbackup-commit mailing list