Switch to boost::process

This commit is contained in:
badaix 2020-01-07 21:03:57 +01:00
parent 87d4c00d21
commit 4a802d73ba
2 changed files with 24 additions and 12 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_;