diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-03-10 17:03:13 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-03-10 17:03:13 +0000 |
commit | 072bc3c19d7f2b02f61ef3e28cf728caa661336a (patch) | |
tree | d8c1f7c28a5759f982ae5cdb85bd46b837ebe8b7 /lib | |
parent | f6f5feee78b3d6cf865b34bb479301d7258ddeeb (diff) |
Catch exceptions thrown by closing the WinNamedPipeStream during shutdown
and suppress them. (refs #3, merges [1284])
Diffstat (limited to 'lib')
-rw-r--r-- | lib/server/WinNamedPipeStream.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/server/WinNamedPipeStream.cpp b/lib/server/WinNamedPipeStream.cpp index 362f3958..e4a675a7 100644 --- a/lib/server/WinNamedPipeStream.cpp +++ b/lib/server/WinNamedPipeStream.cpp @@ -57,7 +57,15 @@ WinNamedPipeStream::~WinNamedPipeStream() { if (mSocketHandle != INVALID_HANDLE_VALUE) { - Close(); + try + { + Close(); + } + catch (std::exception &e) + { + ::syslog(LOG_ERR, "Caught exception while destroying " + "named pipe, ignored."); + } } } |