Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions include/boost/process/pipe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,16 @@ struct basic_pipebuf : std::basic_streambuf<CharT, Traits>
{
if (!is_open())
return nullptr;
overflow(Traits::eof());
return this;
try
{
overflow(Traits::eof());
_pipe.close();
return this;
} catch(...)
{
_pipe.close();
throw;
}
}
private:
pipe_type _pipe;
Expand Down