Warning, file /include/boost/process/v1/detail/posix/close_in.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_PROCESS_WINDOWS_INITIALIZERS_CLOSE_IN_HPP
0011 #define BOOST_PROCESS_WINDOWS_INITIALIZERS_CLOSE_IN_HPP
0012
0013
0014 #include <boost/process/v1/detail/posix/handler.hpp>
0015 #include <boost/process/v1/detail/used_handles.hpp>
0016
0017 namespace boost { namespace process { BOOST_PROCESS_V1_INLINE namespace v1 { namespace detail { namespace posix {
0018
0019 struct close_in : handler_base_ext, ::boost::process::v1::detail::uses_handles
0020 {
0021 template <class Executor>
0022 void on_exec_setup(Executor &e) const
0023 {
0024 if (::close(STDIN_FILENO) == -1)
0025 e.set_error(::boost::process::v1::detail::get_last_error(), "close() failed");
0026 }
0027
0028 int get_used_handles() {return STDIN_FILENO;}
0029
0030 };
0031
0032 }}}}}
0033
0034 #endif