From bb259f8f16e7fca3bc9ab7b18e8c846f7e5c345b Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Wed, 9 May 2018 15:16:15 +0300 Subject: [PATCH 1/4] Add missing returns --- include/boost/process/detail/windows/async_pipe.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/process/detail/windows/async_pipe.hpp b/include/boost/process/detail/windows/async_pipe.hpp index 1bc2c8fe..746d5a28 100644 --- a/include/boost/process/detail/windows/async_pipe.hpp +++ b/include/boost/process/detail/windows/async_pipe.hpp @@ -167,7 +167,7 @@ public: const MutableBufferSequence & buffers, ReadHandler &&handler) { - _source.async_read_some(buffers, std::forward(handler)); + return _source.async_read_some(buffers, std::forward(handler)); } template(handler)); + return _sink.async_write_some(buffers, std::forward(handler)); } const handle_type & sink () const & {return _sink;} From d709c1cd0750b372fdc020bec74522700078df6f Mon Sep 17 00:00:00 2001 From: Klemens David Morgenstern Date: Mon, 18 Jun 2018 09:46:15 +0800 Subject: [PATCH 2/4] fixed tutorial example type --- doc/tutorial.qbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial.qbk b/doc/tutorial.qbk index 1dcbadb2..e4b94112 100644 --- a/doc/tutorial.qbk +++ b/doc/tutorial.qbk @@ -296,7 +296,7 @@ provided we also pass a reference to an io_service. ``` io_service ios; -std::vector buf; +std::vector buf(4096); bp::child c(bp::search_path("g++"), "main.cpp", bp::std_out > asio_buffer(buf), ios); From 44162ecf2243c7cbea412830eddb43d041469eae Mon Sep 17 00:00:00 2001 From: Klemens David Morgenstern Date: Tue, 19 Jun 2018 18:34:39 +0800 Subject: [PATCH 3/4] removed errornous noexcept --- include/boost/process/detail/posix/wait_for_exit.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/process/detail/posix/wait_for_exit.hpp b/include/boost/process/detail/posix/wait_for_exit.hpp index 21e277ba..9c40af16 100644 --- a/include/boost/process/detail/posix/wait_for_exit.hpp +++ b/include/boost/process/detail/posix/wait_for_exit.hpp @@ -87,7 +87,7 @@ template< class Clock, class Duration > inline bool wait_until( const child_handle &p, int & exit_code, - const std::chrono::time_point& time_out) noexcept + const std::chrono::time_point& time_out) { std::error_code ec; bool b = wait_until(p, exit_code, time_out, ec); @@ -109,7 +109,7 @@ template< class Rep, class Period > inline bool wait_for( const child_handle &p, int & exit_code, - const std::chrono::duration& rel_time) noexcept + const std::chrono::duration& rel_time) { std::error_code ec; bool b = wait_for(p, exit_code, rel_time, ec); From f00895a9fce792e0fcae21752a02bf39376404b6 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Tue, 11 Sep 2018 14:38:49 +0800 Subject: [PATCH 4/4] Update tutorial.qbk closes #49 --- doc/tutorial.qbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial.qbk b/doc/tutorial.qbk index e4b94112..452864a0 100644 --- a/doc/tutorial.qbk +++ b/doc/tutorial.qbk @@ -158,7 +158,7 @@ will change the behaviour, so that instead of throwing an exception, the error w ``` std::error_code ec; -bp::system c("g++ main.cpp", ec); +bp::system("g++ main.cpp", ec); ``` [endsect] [section:io Synchronous I/O]