Loading Builder/main.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -54,13 +54,13 @@ int main(int argc, char *argv[]) { // This is fine as all we care about is dumping everything from std_pipe to our buffer and don't require exact line buffering // TODO: just call read_some perhaps? asio::streambuf buffer; boost::regex line_matcher{"\\r|\\n|\\b"}; boost::regex line_matcher{"\\r|\\n"}; // Callback for handling reading from pipe and sending output to client callback_type read_std_pipe = [&](const boost::system::error_code& ec, std::size_t size) { client_messenger.send(buffer); if(size > 0 && ec == boost::system::errc::success) { if(size > 0 && !ec) { asio::async_read_until(std_pipe, buffer, line_matcher, read_std_pipe); } else if(size == 0 && ec == asio::error::eof) { Loading Loading
Builder/main.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -54,13 +54,13 @@ int main(int argc, char *argv[]) { // This is fine as all we care about is dumping everything from std_pipe to our buffer and don't require exact line buffering // TODO: just call read_some perhaps? asio::streambuf buffer; boost::regex line_matcher{"\\r|\\n|\\b"}; boost::regex line_matcher{"\\r|\\n"}; // Callback for handling reading from pipe and sending output to client callback_type read_std_pipe = [&](const boost::system::error_code& ec, std::size_t size) { client_messenger.send(buffer); if(size > 0 && ec == boost::system::errc::success) { if(size > 0 && !ec) { asio::async_read_until(std_pipe, buffer, line_matcher, read_std_pipe); } else if(size == 0 && ec == asio::error::eof) { Loading