Skip to content

Commit

Permalink
Applying @sehe's patch.
Browse files Browse the repository at this point in the history
closes #317
  • Loading branch information
klemens-morgenstern committed Oct 24, 2024
1 parent 34cfc32 commit fae23e6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion include/boost/process/v1/pipe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,16 @@ struct basic_pipebuf : std::basic_streambuf<CharT, Traits>
{
if (!is_open())
return nullptr;
overflow(Traits::eof());
try {
overflow(Traits::eof());
_pipe.close();
return this;
}
catch(...)
{
_pipe.close();
throw ;
}
return this;
}
private:
Expand Down

0 comments on commit fae23e6

Please sign in to comment.