1 // Copyright (c) 2016 Klemens D. Morgenstern
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #ifndef BOOST_PROCESS_DETAIL_POSIX_GROUP_REF_HPP_
7 #define BOOST_PROCESS_DETAIL_POSIX_GROUP_REF_HPP_
9 #include <boost/process/detail/config.hpp>
10 #include <boost/process/detail/posix/group_handle.hpp>
11 #include <boost/process/detail/posix/handler.hpp>
15 namespace boost { namespace process {
17 namespace detail { namespace posix {
21 struct group_ref : handler_base_ext
26 explicit group_ref(group_handle & g) :
30 template <class Executor>
31 void on_exec_setup(Executor&) const
36 ::setpgid(0, grp.grp);
39 template <class Executor>
40 void on_success(Executor& exec) const
52 #endif /* BOOST_PROCESS_DETAIL_POSIX_GROUP_REF_HPP_ */