mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 23:56:43 +02:00
Switch to boost::process
This commit is contained in:
parent
87d4c00d21
commit
4a802d73ba
2 changed files with 24 additions and 12 deletions
|
@ -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_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue