[Box Backup-commit] COMMIT r1284 - box/chris/general/lib/server
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sat, 10 Feb 2007 01:12:41 +0000
Author: chris
Date: 2007-02-10 01:12:41 +0000 (Sat, 10 Feb 2007)
New Revision: 1284
Modified:
box/chris/general/lib/server/WinNamedPipeStream.cpp
Log:
Catch exceptions thrown by closing the WinNamedPipeStream during shutdown
and suppress them.
Modified: box/chris/general/lib/server/WinNamedPipeStream.cpp
===================================================================
--- box/chris/general/lib/server/WinNamedPipeStream.cpp 2007-02-10 01:11:55 UTC (rev 1283)
+++ box/chris/general/lib/server/WinNamedPipeStream.cpp 2007-02-10 01:12:41 UTC (rev 1284)
@@ -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.");
+ }
}
}