diff options
Diffstat (limited to 'boost/process/detail/posix/async_out.hpp')
-rw-r--r-- | boost/process/detail/posix/async_out.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/boost/process/detail/posix/async_out.hpp b/boost/process/detail/posix/async_out.hpp index c448490e67..06fd92e1b1 100644 --- a/boost/process/detail/posix/async_out.hpp +++ b/boost/process/detail/posix/async_out.hpp @@ -89,6 +89,8 @@ struct async_out_buffer : ::boost::process::detail::posix::handler_base_ext, exec.set_error(::boost::process::detail::get_last_error(), "dup2() failed"); ::close(pipe->native_sink()); + ::close(pipe->native_source()); + } }; @@ -161,6 +163,7 @@ struct async_out_future : ::boost::process::detail::posix::handler_base_ext, exec.set_error(::boost::process::detail::get_last_error(), "dup2() failed"); ::close(pipe->native_sink()); + ::close(pipe->native_source()); } }; |