2
0
mirror of https://github.com/boostorg/process.git synced 2026-01-30 08:02:37 +00:00

fixed on_exit duplicate

This commit is contained in:
klemens-morgenstern
2016-10-17 20:26:34 +02:00
parent ab44e76d26
commit bc3dffe671
2 changed files with 23 additions and 28 deletions

View File

@@ -87,30 +87,6 @@ struct initializer_builder<async_tag>
using ::boost::asio::buffer;
/** When an io_service is passed, the on_exit property can be used, to be notified
when the child process exits.
The following syntax is valid
\code{.cpp}
on_exit=function;
on_exit(function);
\endcode
with `function` being callable with `(int, const std::error_code&)`.
\par Example
\code{.cpp}
io_service ios;
spawn("ls", on_exit=[](int exit, const std::error_code& ec_in){});
\endcode
*/
constexpr static ::boost::process::detail::on_exit_ on_exit{};
}}

View File

@@ -23,12 +23,31 @@ struct on_exit_
api::on_exit_ operator()(const std::function<void(int, const std::error_code&)> & f) const {return f;}
};
constexpr static on_exit_ on_exit;
}
using ::boost::process::detail::on_exit;
/** When an io_service is passed, the on_exit property can be used, to be notified
when the child process exits.
The following syntax is valid
\code{.cpp}
on_exit=function;
on_exit(function);
\endcode
with `function` being callable with `(int, const std::error_code&)`.
\par Example
\code{.cpp}
io_service ios;
spawn("ls", on_exit=[](int exit, const std::error_code& ec_in){});
\endcode
*/
constexpr static ::boost::process::detail::on_exit_ on_exit{};
}}
#endif /* INCLUDE_BOOST_PROCESS_WINDOWS_ON_EXIT_HPP_ */