1 // Copyright (c) 2016 Klemens D. Morgenstern
\r
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
\r
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
\r
6 #ifndef BOOST_PROCESS_DETAIL_POSIX_HANDLER_HPP_
\r
7 #define BOOST_PROCESS_DETAIL_POSIX_HANDLER_HPP_
\r
9 #include <boost/process/detail/handler_base.hpp>
\r
11 namespace boost { namespace process { namespace detail { namespace posix {
\r
13 //does not extend anything.
\r
14 struct handler_base_ext : handler_base
\r
16 template<typename Executor>
\r
17 void on_fork_error (Executor &, const std::error_code&) const {}
\r
19 template<typename Executor>
\r
20 void on_exec_setup (Executor &) const {}
\r
22 template<typename Executor>
\r
23 void on_exec_error (Executor &, const std::error_code&) const {}
\r
27 template <class Handler>
\r
28 struct on_fork_error_ : handler_base_ext
\r
30 explicit on_fork_error_(Handler handler) : handler_(handler) {}
\r
32 template <class Executor>
\r
33 void on_fork_error(Executor &e, const std::error_code &ec) const
\r
42 template <class Handler>
\r
43 struct on_exec_setup_ : handler_base_ext
\r
45 explicit on_exec_setup_(Handler handler) : handler_(handler) {}
\r
47 template <class Executor>
\r
48 void on_exec_setup(Executor &e) const
\r
56 template <class Handler>
\r
57 struct on_exec_error_ : handler_base_ext
\r
59 explicit on_exec_error_(Handler handler) : handler_(handler) {}
\r
61 template <class Executor>
\r
62 void on_exec_error(Executor &e, const std::error_code &ec) const
\r
74 #endif /* BOOST_PROCESS_DETAIL_POSIX_HANDLER_HPP_ */
\r