| 214 | } |
| 215 | |
| 216 | void Coprocess::spawn (const std::vector<std::string>& args) |
| 217 | { |
| 218 | proc_handle = spawn_command(args, stdin_pipe_reader, stdout_pipe_writer, nullptr); |
| 219 | if (stdin_pipe_reader) { |
| 220 | CloseHandle(stdin_pipe_reader); |
| 221 | stdin_pipe_reader = nullptr; |
| 222 | } |
| 223 | if (stdout_pipe_writer) { |
| 224 | CloseHandle(stdout_pipe_writer); |
| 225 | stdout_pipe_writer = nullptr; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | int Coprocess::wait () |
| 230 | { |
nothing calls this directly
no test coverage detected