Re: [Boost-bugs] [Boost C++ Libraries] #3517: [iostreams] stream<file_descriptor_source> closes supplied descriptor

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3517: [iostreams] stream<file_descriptor_source> closes supplied descriptor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-15 03:20:03


#3517: [iostreams] stream<file_descriptor_source> closes supplied descriptor
--------------------------------------------------------------------+-------
 Reporter: Alexander Churanov <alexanderchuranov+boost@…> | Owner: turkanis
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: iostreams
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
--------------------------------------------------------------------+-------

Comment(by steven_watanabe):

 I think the correct fix is to make close() for file_descriptor a no-op,
 when you pass in an external file descriptor. This makes
 file_descriptor's semantics simpler, as it either owns the underlying file
 descriptor or it doesn't.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3517#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC