/usr/include/boost/process/detail
NameSizeModeActions
posix/-0755rm
traits/-0755rm
windows/-0755rm
async_handler.hpp28700644editdlrm
basic_cmd.hpp80740644editdlrm
child_decl.hpp65890644editdlrm
config.hpp31660644editdlrm
execute_impl.hpp82620644editdlrm
handler.hpp14650644editdlrm
handler_base.hpp14390644editdlrm
on_exit.hpp17090644editdlrm
throw_on_error.hpp11030644editdlrm
traits.hpp6100644editdlrm
used_handles.hpp23780644editdlrm
Edit: /usr/include/boost/process/detail/on_exit.hpp (1709B)
// Copyright (c) 2016 Klemens D. Morgenstern // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PROCESS_DETAIL_ON_EXIT_HPP_ #define BOOST_PROCESS_DETAIL_ON_EXIT_HPP_ #include #if defined(BOOST_POSIX_API) #include #elif defined(BOOST_WINDOWS_API) #include #endif #include #include namespace boost { namespace process { namespace detail { inline std::function on_exit_from_future(std::future &f) { std::shared_ptr> promise = std::make_shared>(); f = promise->get_future(); return [promise](int code, const std::error_code & ec) { if (ec) promise->set_exception( std::make_exception_ptr(process_error(ec, "on_exit failed with error")) ); else promise->set_value(code); }; } struct on_exit_ { api::on_exit_ operator= (const std::function & f) const {return f;} api::on_exit_ operator()(const std::function & f) const {return f;} api::on_exit_ operator= (std::future &f) const {return on_exit_from_future(f);} api::on_exit_ operator()(std::future &f) const {return on_exit_from_future(f);} }; } constexpr static ::boost::process::detail::on_exit_ on_exit{}; }} #endif /* INCLUDE_BOOST_PROCESS_WINDOWS_ON_EXIT_HPP_ */