Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55797 - trunk/libs/iostreams/src
From: technews_at_[hidden]
Date: 2009-08-27 00:38:13


Author: turkanis
Date: 2009-08-27 00:38:12 EDT (Thu, 27 Aug 2009)
New Revision: 55797
URL: http://svn.boost.org/trac/boost/changeset/55797

Log:
atttped fix for #2932; will close after next testing cycle completes
Text files modified:
   trunk/libs/iostreams/src/file_descriptor.cpp | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: trunk/libs/iostreams/src/file_descriptor.cpp
==============================================================================
--- trunk/libs/iostreams/src/file_descriptor.cpp (original)
+++ trunk/libs/iostreams/src/file_descriptor.cpp 2009-08-27 00:38:12 EDT (Thu, 27 Aug 2009)
@@ -75,7 +75,13 @@
     { }
 
 file_descriptor_impl::~file_descriptor_impl()
-{ if (flags_ & close_on_exit) close(); }
+{
+ if (flags_ & close_on_exit) {
+ try {
+ close();
+ } catch (...) { }
+ }
+}
 
 void file_descriptor_impl::open(file_handle fd, bool close_on_exit)
 {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk