Revert back to process from boost::process

This commit is contained in:
badaix 2020-01-06 23:23:56 +01:00
parent d493493868
commit e195298e74
3 changed files with 259 additions and 24 deletions

View file

@ -19,17 +19,13 @@
#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
{
@ -53,9 +49,7 @@ protected:
std::string exe_;
std::string path_;
std::string params_;
bp::pipe pipe_stdout_;
bp::pipe pipe_stderr_;
bp::child process_;
std::unique_ptr<Process> process_;
bool logStderr_;
boost::asio::streambuf streambuf_stderr_;