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

Subject: [Boost-bugs] [Boost C++ Libraries] #3517: [iostreams] stream<file_descriptor_source> closes supplied descriptor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-09 19:35:14


#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: |
--------------------------------------------------------------------+-------
 The instance of stream <file_descriptor_source> closes supplied file
 descriptor on destruction even if the second specified argument is
 'false'.

 Expected behavior: descriptor remains opened after stream destruction

 The repro application source is at http://alexanderchuranov.com/boost-
 iostreams-autoclose-bug.cc .

 Workaround: call "set_auto_close(false)" right after stream construction.

 It is believed that the root cause of the issue is indirect_stream having
 default constructor always initializing it's "flags_" member to
 f_auto_close.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3517>
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:01 UTC