Replace process class with boost::process

This commit is contained in:
badaix 2020-01-05 22:00:35 +01:00
parent d80c87351c
commit ad05e87f6d
3 changed files with 23 additions and 260 deletions

View file

@ -19,13 +19,17 @@
#ifndef PROCESS_STREAM_HPP
#define PROCESS_STREAM_HPP
#include <boost/process.hpp>
#include <memory>
#include <string>
#include "posix_stream.hpp"
#include "process.hpp"
#include "watchdog.hpp"
namespace bp = boost::process;
namespace streamreader
{
@ -49,7 +53,9 @@ protected:
std::string exe_;
std::string path_;
std::string params_;
std::unique_ptr<Process> process_;
bp::pipe pipe_stdout_;
bp::pipe pipe_stderr_;
bp::child process_;
bool logStderr_;
boost::asio::streambuf streambuf_stderr_;