13 #ifndef __PROCESS_WINDOWS_SUBPROCESS_HPP__
14 #define __PROCESS_WINDOWS_SUBPROCESS_HPP__
21 #include <glog/logging.h>
48 const std::string& path,
49 const std::vector<std::string>& argv,
51 const std::vector<Subprocess::ParentHook>& parent_hooks,
83 "Failed to execute Parent Hook in child '" +
stringify(pid) +
84 "' with command '" +
stringify(argv) +
"': " +
92 "Failed to resume child process with command '" +
102 #endif // __PROCESS_WINDOWS_SUBPROCESS_HPP__
Definition: errorbase.hpp:35
Definition: option.hpp:28
HANDLE get_handle() const
Definition: windows.hpp:96
Definition: error.hpp:106
For output file descriptors a child writes to the write file descriptor and a parent may read from th...
Definition: subprocess.hpp:88
Try<::internal::windows::ProcessData > createChildProcess(const std::string &path, const std::vector< std::string > &argv, const Option< std::map< std::string, std::string >> &environment, const std::vector< Subprocess::ParentHook > &parent_hooks, const InputFileDescriptors stdinfds, const OutputFileDescriptors stdoutfds, const OutputFileDescriptors stderrfds)
Definition: subprocess_windows.hpp:47
Environment * environment
DWORD pid_t
Definition: windows.hpp:187
int_fd write
Definition: subprocess.hpp:91
SharedHandle process_handle
Definition: shell.hpp:212
SharedHandle thread_handle
Definition: shell.hpp:213
static Try error(const E &e)
Definition: try.hpp:42
const lambda::function< Try< Nothing >pid_t)> parent_setup
The callback that must be specified for execution after the child has been cloned, but before it starts executing the new process.
Definition: subprocess.hpp:162
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
bool isError() const
Definition: try.hpp:71
pid_t pid
Definition: shell.hpp:214
A hook can be passed to a subprocess call.
Definition: subprocess.hpp:151
std::string stringify(int flags)
const T & get() const
Definition: try.hpp:73
Try< ProcessData > create_process(const std::string &command, const std::vector< std::string > &argv, const Option< std::map< std::string, std::string >> &environment, const bool create_suspended=false, const Option< std::tuple< int_fd, int_fd, int_fd >> pipes=None())
Definition: shell.hpp:233